![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions A) Java Look and Feel Latest Answer : The package that contains Java Look and Feel is named javax.swing.plaf.metal, it is commonly referred to as Metal. Metal has been Sun's visual appearance of choice for Java programs. With J2SE 1.5, we will get a slightly new look, called Ocean, ... A) Pluggable Look-and-FeelB) Accessibility APIC) Java 2D/API(JDK 1.2).D) Drag and Drop Support(JDK 1.2) Latest Answer : The JFC -java Foundation classes have five major parts :AWT,SWING,ACCESSIBILITY,JAVA 2D,DRAG & DROP as well.PLAF is included with swing.so answers are all of the above. ... A) Extension of java Latest Answer : extension of java package ... A) java.util.eventObject Latest Answer : Event types are encapsulated in a class hierarchy rooted at java.util.EventObject. An event is propagated from a "Source" object to a "Listener" object by invoking a method on the listener and passing in the instance of the event subclass which defines ... A) java.awt.AWTEventB) java.awt.EventC) java.util.eventObjectD) javax.swing.ObjectExplanation: The java.awt.AWTEvent class is the highest-level class in the AWT event class hierarchy. Latest Answer : This is kind of a dicy question:But in Java the event heirarchy goes like :java.lang.object -> java.util.EventObject -> java.awt.AWTEvent.So the java.util.EventObject is the superclass of all events.But java.awt.AWTEvent is the superclass of all ... An application has a frame that uses a Border layout manager. Why is it probably not a good idea to put a vertical scroll bar at North in the frame? A) The scroll bar’s height would be its preferred height, which is not likely to be enough.B) The scroll bar’s width would be the entire width of the frame, which would be much wider than necessary.C) A) North, South, East, WestB) Assign a row/column grid referenceC) Pass a X/Y percentage parameter to the add methodD) Do nothing, the FlowLayout will position the component Latest Answer : D ... A) The default layout manager for an Applet is FlowLayoutB) The default layout manager for an application is FlowLayoutC) A layout manager must be assigned to an Applet before the setSize method is calledD) Latest Answer : Answer A) ... A) B) C) D) What is the result of executing the following Java class: import java.awt.*; public class FrameTest extends Frame {public FrameTest() {add (new Button("First"));add (new Button("Second"));add (new Button("Third"));pack();setVisible(true);}public static void main(String args []) {new FrameTest();}} Select from the following options: A) Only the "third" button is displayed.B) A runtime exception is generated (no layout manager specified).C) Only the "first" button is displayed.D) Only the "second" button
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||