Advertisement
8877omega_java

Untitled

Oct 2nd, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. package window_st;
  2.  
  3. import javax.swing.JFrame;
  4.  
  5.  
  6. public class GuiDisplay extends JFrame{
  7.  
  8.       public static void main(String[] args){
  9.         GuiDisplay test = new GuiDisplay();
  10.  
  11.         test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  12.         test.setVisible(true);
  13.       }
  14.  
  15.       GuiDisplay(){
  16.         setTitle("swing.JFrame.test");
  17.         setBounds( 500, 500, 500, 500);
  18.       }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement