Skip to content
Snippets Groups Projects
Commit 8ea35d25 authored by steyer's avatar steyer
Browse files

Kezdetleges GameWindow 2

parent 2f95d641
Branches
No related tags found
No related merge requests found
...@@ -12,13 +12,25 @@ public class GameWindow extends JFrame { ...@@ -12,13 +12,25 @@ public class GameWindow extends JFrame {
super("Game of Life"); super("Game of Life");
this.model = model; this.model = model;
table = new JTable(model); table = new JTable(model);
table.setPreferredSize(new Dimension(300, 300)); //TODO igazodjon a táblához
setLayout(new BorderLayout()); setLayout(new BorderLayout());
add(table, BorderLayout.CENTER); add(table, BorderLayout.CENTER);
setSize(300, 300); //setSize(300, 300); TODO törölni
setLocationRelativeTo(null); setLocationRelativeTo(null);
JPanel bottomPanel = new JPanel();
JButton startButton = new JButton("Start");
JButton stopButton = new JButton("Stop");
JButton saveButton = new JButton("Save");
bottomPanel.add(startButton);
bottomPanel.add(stopButton);
bottomPanel.add(saveButton); //TODO save
add(bottomPanel, BorderLayout.PAGE_END);
setVisible(true); setVisible(true);
pack();
} }
} }
...@@ -41,8 +41,6 @@ public class StartWindow extends JFrame { ...@@ -41,8 +41,6 @@ public class StartWindow extends JFrame {
startButton.setActionCommand("start"); startButton.setActionCommand("start");
startButton.addActionListener(listener); startButton.addActionListener(listener);
add(startButton, BorderLayout.PAGE_END); add(startButton, BorderLayout.PAGE_END);
} }
public void setTextFieldMessage (String message){ public void setTextFieldMessage (String message){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment