This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
swing:color [2018/03/27 20:35] gthanos [Παράδειγμα χρήση της κλάσης Color] |
swing:color [2018/03/27 22:19] gthanos |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Για παράδειγμα, | Για παράδειγμα, | ||
| <code java> | <code java> | ||
| + | // assuming you are inside the constructor or a non static method of the frame | ||
| this.getContnetPane().setBackground(Color.BLUE); | this.getContnetPane().setBackground(Color.BLUE); | ||
| </ | </ | ||