|
Java™ by example!
|
|
|
|
Become a member to observe this category
|
|
Button
The only decision you can make when creating a button is the what label it should take. Image buttons are not supported in the AWT (if you need image buttons you may want to check out Swing's JButton). If you want a class to perform an action when the button is pressed or released you need to have the class implement ActionListener and register it with the Button. If such an event occurs, AWT will send an ActionEvent to the button that passes it along to its action listeners.
Related Categories
JButton, JCheckBox, JRadioButton
Subcategories
Questions & Answers
= answered, = unanswered
General:
How do I assign a shortcut key to a Button?
Further Information (sorted alphabetically)
Api's:
Related Links:
|
|
|
|
|