This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
swing:color [2020/03/17 06:39] gthanos [Παράδειγμα χρήση της κλάσης Color] |
swing:color [2021/04/13 05:37] (current) |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| <code java> | <code java> | ||
| // assuming you are inside the constructor or a non static method of the frame | // assuming you are inside the constructor or a non static method of the frame | ||
| - | this.getContnetPane().setBackground(Color.BLUE); | + | this.getContentPane().setBackground(Color.BLUE); |
| </ | </ | ||