Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Dimension;
- import java.awt.GridLayout;
- import javax.swing.JFrame;
- public class GraphicsRunner {
- public static void main(String[] args) {
- JFrame frame = new JFrame();
- frame.setLayout(new GridLayout(4, 0, 5, 5));
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setSize(1280, 720);
- frame.setPreferredSize(new Dimension(140, 140));
- frame.add(new GraphicsTile());
- frame.add(new GraphicsTile());
- frame.setVisible(true);
- }
- }
Add Comment
Please, Sign In to add comment