FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaExercises/Java 1/swing/HelloSwing.java at master · biblelamp/JavaExercises · GitHub
biblelamp
/
JavaExercises
Public
Notifications
You must be signed in to change notification settings
Fork
130
Star
153
Code
Issues
1
Pull requests
9
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaExercises
/
Java 1
/
swing
/
HelloSwing.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (18 loc) · 538 Bytes
Breadcrumbs
JavaExercises
/
Java 1
/
swing
/
HelloSwing.java
Copy path
File metadata and controls
22 lines (18 loc) · 538 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import
javax
.
swing
.
JFrame
;
import
java
.
awt
.
Button
;
import
java
.
awt
.
BorderLayout
;
class
HelloSwing
extends
JFrame
{
public
static
void
main
(
String
[]
args
) {
new
HelloSwing
();
}
HelloSwing
() {
setTitle
(
"Hello Swing!"
);
setDefaultCloseOperation
(
EXIT_ON_CLOSE
);
setSize
(
500
,
250
);
setLocationRelativeTo
(
null
);
Button
btnExit
=
new
Button
(
"Exit"
);
btnExit
.
addActionListener
(
e
->
System
.
exit
(
0
));
add
(
btnExit
,
BorderLayout
.
SOUTH
);
setVisible
(
true
);
}
}
Back
|
FazBrowse Home
|
New Git URL