Browse Source

Update Methode void BuildGui and class NewGameListener

main
Thoumi Ngonga Brice 2 years ago
parent
commit
cf0ef3a2d2
  1. 9
      src/main/java/BattleShip/BShip.java

9
src/main/java/BattleShip/BShip.java

@ -11,6 +11,7 @@ public class BShip {
JPanel thePanel = new JPanel();
JPanel textPanel = new JPanel();
JTextArea textArea = new JTextArea();
JFrame theFrame = new JFrame("Battleship");
JMenuItem auto;
JMenuItem[] boardSize = new JMenuItem[3];
public AIGridGUI grid2;
@ -66,6 +67,14 @@ public class BShip {
textPanel.add(textArea);
thePanel.add(textPanel);
thePanel.add(grid2);
theFrame.add(thePanel);
theFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
theFrame.setJMenuBar(bar);
theFrame.setBounds(0,0,500,750);
theFrame.setVisible(true);
}
public class NewGameListener implements ActionListener {

Loading…
Cancel
Save