esuslogo
 [To advertise Java(tm) Events here, contact joris@esus.com!]
banner

Java™
by example!






New @ Esus.com


  gb  In-house search engine for better results!

  gb  Get updates with the esus.com
newsletter!









  Home 
 Browse Categories 
 Ask a Java Question 
 Help 
  For Java Tips & Tricks, subscribe to the esus.com newsletter!
Search Java Q&A, Links, API's:   adv 

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:







      Terms of Service | Privacy Policy | Contact

      Copyright © 2000-2003 Esus.com - All Rights Reserved 
      Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. Esus.com is independent of Sun Microsystems, Inc. All other trademarks are the sole property of their respective owners.