Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can a gui component handle its own events?



How can a gui component handle its own events?..

Answer / Roopali Sharma

In Core Java, a GUI component can handle its own events by implementing the ActionListener or other event-specific interfaces such as ItemListener, AdjustmentListener, etc. Then, it overrides the respective method(s) like actionPerformed() for ActionEvent or itemStateChanged() for ItemEvent. Upon an event occurrence, the component will call the appropriate method in the registered listener object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is vector?

1 Answers  


What is the difference between the >> and >>> operators?

1 Answers  


How does synchronized modifier work?

1 Answers   IBM,


What are the different ways of implementing thread? Which one is more advantageous?

1 Answers  


Why javac is not recognized?

1 Answers  


What is the structure of java?

1 Answers  


What is double parsedouble in java?

1 Answers  


When do we use hashset over treeset?

1 Answers  


How do you delete a list in java?

1 Answers  


Name few java 8 annotations ?

1 Answers  


Which containers use a flowlayout as their default layout in java programming?

1 Answers  


Can I extend singleton class in java?

1 Answers  


Categories