AWT/Swing Interview Questions and Answers
AWT/Swing : How can a GUI component handle its own events?

How can a GUI component handle its own events?

By implementing the required event-listener interface and adding itself as its own event listener.
Category: AWT/Swing Date: 11/9/2010 11:49:05 AM
AWT/Swing : What interface is extended by AWT event listeners?

What interface is extended by AWT event listeners?

All AWT event listeners extend the java.util.EventListener interface.
Category: AWT/Swing Date: 11/9/2010 10:00:07 AM
AWT/Swing : What is the preferred size of a component?

What is the preferred size of a component?

The preferred size of a component is the minimum component size that will allow the component to dis....
Category: AWT/Swing Date: 11/9/2010 8:22:04 AM
AWT/Swing : What is the immediate superclass of the Dialog class?

What is the immediate superclass of the Dialog class?

Window
Category: AWT/Swing Date: 11/9/2010 6:33:06 AM
AWT/Swing :  Which method of the Component class is used to set the position and size of a component?
AWT/Swing : What are the problems faced by Java programmers who don't use layout managers?

What are the problems faced by Java programmers who don't use layout managers?

Without layout managers, Java programmers are faced with determining how their GUI will be displayed....
Category: AWT/Swing Date: 11/9/2010 1:16:07 AM
AWT/Swing : What is default Look-and-Feel of a Swing Component?

What is default Look-and-Feel of a Swing Component?

Java Look-and-Feel.
Category: AWT/Swing Date: 11/8/2010 11:38:05 PM
AWT/Swing : What is the immediate superclass of Menu?

What is the immediate superclass of Menu?

MenuItem
Category: AWT/Swing Date: 11/8/2010 9:49:06 PM
AWT/Swing : Which java.util classes and interfaces support event handling?

Which java.util classes and interfaces support event handling?

The EventObject class and the EventListener interface support event processing.
Category: AWT/Swing Date: 11/8/2010 9:16:06 PM
AWT/Swing : When we should go for codebase in applet?

When we should go for codebase in applet?

When the applet class is not in the same directory.
Category: AWT/Swing Date: 11/8/2010 8:11:04 PM
AWT/Swing : What is the difference between the Font and FontMetrics classes?

What is the difference between the Font and FontMetrics classes?

The FontMetrics class is used to define implementation-specific properties, such as ascent and desce....
Category: AWT/Swing Date: 11/8/2010 6:55:07 PM
AWT/Swing : What are the features of JFC?

What are the features of JFC?

Pluggable Look-and-Feel. 2- Accessibility API. 3- Java 2D API. 4- Drag and Drop Support.
Category: AWT/Swing Date: 11/8/2010 6:23:05 PM
AWT/Swing : What interface is extended by AWT event listeners?

What interface is extended by AWT event listeners?

All AWT event listeners extend the java.util.EventListener interface.
Category: AWT/Swing Date: 11/8/2010 5:50:05 PM
AWT/Swing : What methods are used to get and set the text label displayed by a Button object?

What methods are used to get and set the text label displayed by a Button object?

getLabel() and setLabel()
Category: AWT/Swing Date: 11/8/2010 4:00:07 PM
AWT/Swing : Name two subclasses of the TextComponent class.

Name two subclasses of the TextComponent class.

TextField and TextArea.
Category: AWT/Swing Date: 11/8/2010 1:06:07 PM
2 3 4 5 6 7 
Recent Answers
How do you declare destructor in c#?
kumar answered: by implementing finalize and dispose method