|
static void | main (String[] args) |
|
Definition at line 4 of file SimpleGUI2.java.
◆ actionPerformed()
void SimpleGUI2.actionPerformed |
( |
ActionEvent | event | ) |
|
|
inline |
Definition at line 21 of file SimpleGUI2.java.
21 {
22 button.setText("I've been clicked!");
23 }
◆ go()
Definition at line 11 of file SimpleGUI2.java.
11 {
12 JFrame frame = new JFrame();
13 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
14 button = new JButton("click me");
15 button.addActionListener(this);
16 frame.add(button);
17 frame.setSize(300, 300);
18 frame.setVisible(true);
19 }
Referenced by main().
◆ main()
static void SimpleGUI2.main |
( |
String[] | args | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: