Guest User

GraphicsRunner

a guest
Sep 5th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import java.awt.Dimension;
  2. import java.awt.GridLayout;
  3.  
  4. import javax.swing.JFrame;
  5.  
  6. public class GraphicsRunner {
  7.  
  8. public static void main(String[] args) {
  9. JFrame frame = new JFrame();
  10. frame.setLayout(new GridLayout(4, 0, 5, 5));
  11.  
  12. frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  13. frame.setSize(1280, 720);
  14. frame.setPreferredSize(new Dimension(140, 140));
  15. frame.add(new GraphicsTile());
  16. frame.add(new GraphicsTile());
  17. frame.setVisible(true);
  18. }
  19. }
Add Comment
Please, Sign In to add comment