Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. final int h = 600;
  2. final int w = 600;
  3.  
  4. QScreen screen = new QScreen(w, h, 24);
  5. JFrame f = new JFrame();
  6. f.setResizable(true);
  7. f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  8. f.setLocationRelativeTo(null);
  9. f.add(screen);
  10. f.setTitle("Example");
  11. f.setSize(w, h);
  12. f.setVisible(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement