| Author |
draw image on JDesktopPane
|
Michael Remijan
Ranch Hand
Joined: May 29, 2002
Posts: 103
|
|
Hi, I have a gif that I want to setup as the "background" of a JDesktopPane object. Any ideas how to do this?
|
<a href="http://www.linkedin.com/in/mjremijan" rel="nofollow">
<img src="http://www.linkedin.com/img/webpromo/btn_viewmy_160x25.png" border="0" >
</a>
|
 |
Rene Liebmann
Ranch Hand
Joined: May 02, 2002
Posts: 196
|
|
First you have to create your own DesktopPane, which extends from JDesktopPane. Then you have to overwrite the paintComponent(Graphis g) method, where you draw your image. One year ago I found a JavaAPI called KIWI. This API was free to use. You will find it here. I think, they provide the same functionality, which you want to have, but if you want to do it by your own, you will find a good example. Hope that helps Rene
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
|
I posted how to do this ( with code ), in this post...
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
 |
|
|
subject: draw image on JDesktopPane
|
|
|