Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Listener in java

View previous topic View next topic Go down

GMT + 3 Hours Listener in java

Post by Diya Sun May 29, 2011 3:46 pm

Please explain me about Listener
Diya
Diya
Monstars
Monstars

Taurus Goat
Posts : 364
Join date : 2011-02-08
Age : 33
Notworthy

Character sheet
Experience:
Listener in java Left_bar_bleue10/500Listener in java Empty_bar_bleue  (10/500)

Back to top Go down

GMT + 3 Hours Re: Listener in java

Post by Vuhelper Sun May 29, 2011 3:47 pm

A listener is called when the user does something to the user interface that causes an event. Although these events usually come from the user interface, they can have other sources (eg, a Timer).
Button listener example

After a button is created, you will add a listener to it. Eg,

b.addActionListener(listener_object);

When the button is clicked, a call is made to the actionPerformed() method defined in the class of the listener object. An ActionEvent object is passed as a parameter to it actionPerformed().
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum