Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JFrame;
- class Main{
- public static void main(String[] args) {
- f1 frame = new f1("f1");
- System.out.println("hello!!!!");
- }
- }
- class f1 extends JFrame{
- f1(String title){
- setTitle("f1");
- setBounds(200, 200, 400, 320);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement