diff --git a/src/main/java/BattleShip/BShip.java b/src/main/java/BattleShip/BShip.java index 13029cd..cda0dd8 100644 --- a/src/main/java/BattleShip/BShip.java +++ b/src/main/java/BattleShip/BShip.java @@ -1,8 +1,12 @@ package BattleShip; +import javax.swing.*; + public class BShip { public GridGUI grid1; + JPanel thePanel = new JPanel(); + JMenuItem[] boardSize = new JMenuItem[3]; public AIGridGUI grid2; int rows = 10; int columns = 10; @@ -19,6 +23,18 @@ public class BShip { buildGUI(); } - public void buildGUI() {} + public void buildGUI() { + + thePanel.setLayout(new BoxLayout(thePanel, BoxLayout.PAGE_AXIS)); + + + thePanel.add(grid1); + + //Setup menu with options for new game, varying board sizes, and auto placement of ships. + boardSize[0] = new JMenuItem("8x8"); + boardSize[1] = new JMenuItem("10x10"); + boardSize[2] = new JMenuItem("12x12"); + + } } diff --git a/target/classes/BattleShip/AIGridGUI$DirectionCompare.class b/target/classes/BattleShip/AIGridGUI$DirectionCompare.class index 6155fb4..a226425 100644 Binary files a/target/classes/BattleShip/AIGridGUI$DirectionCompare.class and b/target/classes/BattleShip/AIGridGUI$DirectionCompare.class differ diff --git a/target/classes/BattleShip/AIGridGUI$SetShipsListener.class b/target/classes/BattleShip/AIGridGUI$SetShipsListener.class index 9cd9da1..a43d2b1 100644 Binary files a/target/classes/BattleShip/AIGridGUI$SetShipsListener.class and b/target/classes/BattleShip/AIGridGUI$SetShipsListener.class differ diff --git a/target/classes/BattleShip/AIGridGUI.class b/target/classes/BattleShip/AIGridGUI.class index 7a306b2..7c2fc5b 100644 Binary files a/target/classes/BattleShip/AIGridGUI.class and b/target/classes/BattleShip/AIGridGUI.class differ diff --git a/target/classes/BattleShip/BShip.class b/target/classes/BattleShip/BShip.class index 5809f27..7a62b7a 100644 Binary files a/target/classes/BattleShip/BShip.class and b/target/classes/BattleShip/BShip.class differ