JButton

Palette category
Swing
Palette bean
JButton
Project
JFC class libraries
Package
com.sun.java.swing
Type
JButton

Use a JButton bean to provide a push button that the user can select to perform an action. For example, you can define an OK button to let the user save changes and close a window.

Use a Button bean, rather than a JButton bean, if you want to use it in an AWT container. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Button Component

Related references
Button Beans
Beans for Visual Composition