|
static void | main (String[] args) |
|
Definition at line 5 of file SimpleGUI3.java.
◆ actionPerformed()
void SimpleGUI3.actionPerformed |
( |
ActionEvent | event | ) |
|
|
inline |
◆ go()
Definition at line 13 of file SimpleGUI3.java.
13 {
14 frame = new JFrame();
15 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
16 JButton button = new JButton("Change colors");
17 button.addActionListener(this);
18 MyDrawPanel2 drawPanel = new MyDrawPanel2();
19 frame.add(button, BorderLayout.SOUTH);
20 frame.add(drawPanel, BorderLayout.CENTER);
21 frame.setSize(300, 300);
22 frame.setVisible(true);
23 }
Referenced by main().
◆ main()
static void SimpleGUI3.main |
( |
String[] | args | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: