Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JCheckBox(){
- JFrame f= new JFrame("CheckBox Example");
- JCheckBox checkBox1 = new JCheckBox("c++");
- checkBox1.setBounds(100,100, 50,50);
- JCheckBox checkBox2 = new JCheckBox();
- checkBox2.setBounds(100,150, 50,50);
- f.add(checkBox1);
- f.add(checkBox2);
- f.setSize(400,400);
- f.setLayout(null);
- f.setVisible(true);
- }
- public static void main(String[] args) {
- new JCheckBox();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement