Creating JRadioButton using Java Swing
Creating JRadioButton using Java Swing: https://youtu.be/ukZF38g13eA ________________________________________________ How to make JRadioButton
package Test;
import javax.swing.*;
public class Test{
public static void main(String[] args){
JFrame frame = new JFrame("Test Frame");
frame.setBounds(600,150,500,300);
frame.setLayout(null);
JRadioButton radiobutton1 = new JRadioButton("Java");
radiobutton1.setBounds(10,20,100,20);
JRadioButton radiobutton2 = new JRadioButton("Python");
radiobutton2.setBounds(10,60,100,20);
frame.add(radiobutton1);
frame.add(radiobutton2);
frame.setVisible(true);
}
}
________________________________________________
Dark Hers
YouTube
https://instagram.com/darkhers
https://www.facebook.com/darkhers
TikTok
https://www.tiktok.com/@darkhers
https://www.pinterest.co.uk/darkhers
Comments
Post a Comment