Please use JRadioButtons, that would fulfill your requirement.
More Related Contents:
- pulling text from file with Java [closed]
- Program not accessing method paintComponent() of extended JPanel class
- CombinedDomainXYPlot not rescaling domain axis
- Dynamically Add Components to a JDialog
- Setting background images in JFrame
- How to use CardLayout with Netbeans GUI Builder
- Draw with lines in Java
- Add an Background image to a Panel
- Open a link in browser with java button? [duplicate]
- Java – How to drag and drop JPanel with its components
- Which Swing component methods are thread safe?
- How can I listen for key presses (within Java Swing) across all components?
- Drag and Drop custom object from JList into JLabel
- JButton() only working when mouse hovers
- Swing – Thread.sleep() stop JTextField.setText() working [duplicate]
- Create dynamic table to add new entry with button
- Integrating JavaFX 2.0 WebView into a Swing Java SE 6 Application
- How to serialize Java 2D Shape objects as XML?
- How to make Circle image Label in Java?
- Pacman open/close mouth animation
- How can a Swing WindowListener veto JFrame closing
- JPanel Padding in Java
- Java – placeholder on textfield
- Stop/cancel SwingWorker thread?
- How to display faint gray “ghost text” in a JTextField?
- How to right-justify icon in a JLabel?
- How do I refresh a GUI in Java?
- Add WebView control on Swing JFrame
- JTextPane highlight text
- All JFrame freeze while do JavaMail