Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
JTankTrouble
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9831111
JTankTrouble
Commits
34d67f13
Commit
34d67f13
authored
Jul 22, 2020
by
9831111
🙂
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SettingFrame class.
parent
318f6fed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
CreateNewGameFrame.java
src/CreateNewGameFrame.java
+2
-0
SettingFrame.java
src/SettingFrame.java
+27
-0
No files found.
src/CreateNewGameFrame.java
View file @
34d67f13
...
@@ -114,6 +114,7 @@ public class CreateNewGameFrame extends JFrame {
...
@@ -114,6 +114,7 @@ public class CreateNewGameFrame extends JFrame {
settingPanel
.
add
(
optionPanel
,
BorderLayout
.
SOUTH
);
settingPanel
.
add
(
optionPanel
,
BorderLayout
.
SOUTH
);
}
}
class
OkButtonAction
implements
ActionListener
{
class
OkButtonAction
implements
ActionListener
{
@Override
@Override
...
@@ -125,6 +126,7 @@ public class CreateNewGameFrame extends JFrame {
...
@@ -125,6 +126,7 @@ public class CreateNewGameFrame extends JFrame {
new
OnlineModeFrame
();
new
OnlineModeFrame
();
}
}
}
}
public
void
writeToFile
(
String
dataToWrite
)
{
public
void
writeToFile
(
String
dataToWrite
)
{
File
file
=
new
File
(
"Games.txt"
);
File
file
=
new
File
(
"Games.txt"
);
try
(
FileWriter
fileWriter
=
new
FileWriter
(
file
,
true
))
{
try
(
FileWriter
fileWriter
=
new
FileWriter
(
file
,
true
))
{
...
...
src/SettingFrame.java
0 → 100644
View file @
34d67f13
import
javax.swing.*
;
import
java.awt.*
;
public
class
SettingFrame
extends
JFrame
{
private
JPanel
settingPanel
;
private
JPanel
serverPanel
;
private
JPanel
gameDetailsPanel
;
private
JPanel
userInformationPanel
;
private
JLabel
tankLabel
;
private
JLabel
tankPhoto
;
private
ImageIcon
tank
;
public
SettingFrame
()
{
setBackground
(
Color
.
WHITE
);
setResizable
(
false
);
setLayout
(
new
GridLayout
(
1
,
2
));
setBounds
(
400
,
200
,
900
,
600
);
initUserInformationPanel
();
initSettingPanel
();
setVisible
(
true
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment