• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

draw image on JDesktopPane

 
Michael Remijan
Author
Ranch Hand
Posts: 131
7
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a gif that I want to setup as the "background" of a JDesktopPane object. Any ideas how to do this?
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I posted how to do this ( with code ), in this post...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic