COMP2396
Loading...
Searching...
No Matches
SimpleGUI.java
Go to the documentation of this file.
1
import
javax.swing.*;
2
3
public
class
SimpleGUI
{
4
public
static
void
main
(String[] args) {
5
JFrame frame =
new
JFrame();
6
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
7
JButton button =
new
JButton(
"click me"
);
8
frame.add(button);
9
frame.setSize(300, 300);
10
frame.setVisible(
true
);
11
}
12
}
SimpleGUI
Definition
SimpleGUI.java:3
SimpleGUI.main
static void main(String[] args)
Definition
SimpleGUI.java:4
chapter8
SimpleGUI.java
Generated on Sat Dec 7 2024 17:10:09 for COMP2396 by
1.12.0