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
6b4de2de
Commit
6b4de2de
authored
Jul 22, 2020
by
9831111
🙂
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add login frame class.
parents
Pipeline
#5350
canceled with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
0 deletions
+55
-0
JTankTrouble.iml
JTankTrouble.iml
+12
-0
LoginFrame.java
src/LoginFrame.java
+37
-0
Main.java
src/Main.java
+6
-0
No files found.
JTankTrouble.iml
0 → 100644
View file @
6b4de2de
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
inherit-compiler-output=
"true"
>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src"
isTestSource=
"false"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
src/LoginFrame.java
0 → 100644
View file @
6b4de2de
import
javax.swing.*
;
import
javax.swing.border.LineBorder
;
import
javax.swing.border.TitledBorder
;
import
java.awt.*
;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionListener
;
import
java.io.File
;
import
java.io.FileReader
;
import
java.io.FileWriter
;
import
java.util.Scanner
;
public
class
LoginFrame
extends
JFrame
{
private
JTextField
userName
;
private
JPasswordField
passwordField
;
private
JCheckBox
remindMe
;
private
JPanel
informationPanel
;
private
JPanel
buttonPanel
;
private
JButton
signIn
;
private
JButton
signUp
;
private
ImageIcon
tankPhoto
;
public
LoginFrame
()
{
setBackground
(
Color
.
WHITE
);
setResizable
(
false
);
setLayout
(
new
BorderLayout
());
setBounds
(
700
,
250
,
320
,
515
);
// initLoginFrame();
// initRemindMe();
// initInformationPanel();
setVisible
(
true
);
}
}
src/Main.java
0 → 100644
View file @
6b4de2de
public
class
Main
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
}
}
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