View Single Post
  #2 (permalink)  
Old 03-24-2008, 07:04 AM
Eranga's Avatar
Eranga Eranga is offline
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,576
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
This may help you. I used ImageIcon here, but not tested. Just writing this code on my memory

Code:
ImageIcon icon = new ImageIcon(your_image_path_here); backgroundImage = icon.getImage();
After that get a content pane for your GUI(components actually.) There is a method called setBackgroundImage() where you can set the backgroundImage there.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote