| View previous topic :: View next topic |
| Author |
Message |
Koplaf
Joined: 28 May 2006 Posts: 130
|
Hello, i have a proble with my applet. I have set a background image with a method paint, the background work, but all component like button are invisible. But they are visible when i pass my mouse under
Can you help me ? |
| |
|
|
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| Koplaf, if you are using JApplet you should override paintComponent, not paint |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| autos06, so i have to make a method "paintComponent" with super to overide |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| Koplaf, it's well explained in the Swing tutorial |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
| |
Koplaf
Joined: 28 May 2006 Posts: 130
|
| Where is swing tutorial ? |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
Same link
Just go to the table of contents |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
Ok thank you
Super.paintComponent ... doesn't exist for applet |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| Koplaf, Applets are old shit, write applications. |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
Sorry it's i forgot the "s"
It's components |
| |
|
|
|