Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GameOfLife
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sferi01
GameOfLife
Commits
8ea35d25
Commit
8ea35d25
authored
Dec 9, 2019
by
steyer
Browse files
Options
Downloads
Patches
Plain Diff
Kezdetleges GameWindow 2
parent
2f95d641
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/game/GameWindow.java
+13
-1
13 additions, 1 deletion
src/game/GameWindow.java
src/game/StartWindow.java
+0
-2
0 additions, 2 deletions
src/game/StartWindow.java
with
13 additions
and
3 deletions
src/game/GameWindow.java
+
13
−
1
View file @
8ea35d25
...
@@ -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
();
}
}
}
}
This diff is collapsed.
Click to expand it.
src/game/StartWindow.java
+
0
−
2
View file @
8ea35d25
...
@@ -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
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment