• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swings + Image

 
vandana
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I hv JDesktopPane wch has a menu bar attached to it.
whn i run my applicaton the menu appears with a blank screen having look n feel of windows.
I want tht in the background there shd be some picture on the screen.
I mean the screen of my application shd not be blak. It shd hv a pic same as we set wall papers to our screen.
how to do it???
pl help.
thanx.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vandana",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Vandana,
You have to maake your own class which extends from the JDesktopPane. You have to override the paint() method of this class to show whatever image you want to show.
--------------
Amit Agarwal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!