Refer to Swing Components Supporting Action for more details, and you can find more information in How to Use Actions, a section in The Java Tutorial. See How to Use Buttons, Check Boxes, and Radio Buttons in The Java Tutorial for information and examples
The Swing release supports radio buttons with the JRadioButton and ButtonGroup classes. To put a radio button in a menu , use the JRadioButtonMenuItem class. Other ways of displaying one-of-many choices are combo boxes and lists .
This is a java template i found about Card Layout import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Main { private static final String CARD_JBUTTON = "Card JBu...
Post a Comment:
Showing 0 Comments: