diff --git a/src/Tetris/GameGui.java b/src/Tetris/GameGui.java index ee7aad5..b44d13d 100644 --- a/src/Tetris/GameGui.java +++ b/src/Tetris/GameGui.java @@ -6,16 +6,18 @@ import java.awt.*; public class GameGui { public static final int width= 500, height =650; private Board board; + private Board board2; private JFrame frame; public GameGui(){ frame = new JFrame("Tetris"); JPanel panel = new JPanel(); - panel.setBorder(BorderFactory.createEmptyBorder(450, 30, 100, 30)); + panel.setBorder(BorderFactory.createMatteBorder(450, 50, 50, 50,Color.black)); JButton button1 = new JButton("Start"); JButton button2 = new JButton("Pause"); + panel.setLayout(new GridLayout(0,1)); panel.setBackground(Color.DARK_GRAY); panel.add(button1); @@ -39,6 +41,8 @@ public class GameGui { frame.setVisible(true); board = new Board(); frame.add(board,BorderLayout.CENTER); + board2 = new Board(); + frame.add(board2,BorderLayout.EAST); } public static void main(String [] args) {