Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaapplication4;
- import java.awt.FlowLayout;
- import javax.swing.JButton;
- import javax.swing.JFrame;
- import javax.swing.JLabel;
- public class JavaApplication4 extends JFrame{
- JButton b;
- JLabel l;
- public JavaApplication4(){
- this.setTitle("netbeans");
- this.setSize(300, 300);
- this.setVisible(true);
- this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- this.setLayout(new FlowLayout());
- this.setResizable(false);
- b = new JButton("we");
- l = new JLabel("ff");
- this.getContentPane().add(l);
- this.getContentPane().add(b);
- }
- public static void main(String[] args) {
- JavaApplication4 f = new JavaApplication4();
- f.setVisible(true);
- }
- }
Add Comment
Please, Sign In to add comment