AWT/Swing Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1247 Page Views: 

How can a GUI component handle its own events?



Posted By: Avi Date: 9 November 2010 11:49:05 AM
 Answer:

By implementing the required event-listener interface and adding itself as its own event listener.


Posted By: avibtech


Date: 9 November 2010 11:49:05 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image hdUJWi
Related Questions
AWT/Swing : What is the relationship between clipping and repainting?

What is the relationship between clipping and repainting?

When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of t....
Category: AWT/Swing Date: 11/7/2010 9:28:06 PM
AWT/Swing : What is the relationship between the Canvas class and the Graphics class?

What is the relationship between the Canvas class and the Graphics class?

A Canvas object provides access to a Graphics object via its paint() method.
Category: AWT/Swing Date: 11/7/2010 7:06:07 PM
AWT/Swing : What is the immediate superclass of the Applet class?

What is the immediate superclass of the Applet class?

Panel
Category: AWT/Swing Date: 11/7/2010 12:45:06 PM
AWT/Swing : What is the difference between scrollbar and scrollpane?

What is the difference between scrollbar and scrollpane?

A Scrollbar is a Component, but not a Container whereas Scrollpane is a Container and handles its ow....
Category: AWT/Swing Date: 11/7/2010 12:13:05 PM
AWT/Swing : What is the difference between a MenuItem and a CheckboxMenuItem?

What is the difference between a MenuItem and a CheckboxMenuItem?

The CheckboxMenuItem class extends the MenuItem class to support a menu item that may be checked or ....
Category: AWT/Swing Date: 11/7/2010 12:12:06 PM