Results 1 to 2 of 2
Thread: picture backround
- 10-17-2008, 10:47 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 2
- Rep Power
- 0
- 10-18-2008, 07:13 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Did you search on the web about this. All you have to read about ImageIcon, and layouts. Read API for more details.
First create a ImageIcon to the image you want. Then create a JLabel with adding that ImageIcon, there is an overloaded method to add an image into a label. Get the layered pane, getLayedPane() and add that label into that. That's all.
Put some effort and get back here if you stuck with something. But put some effort first. I've given all what you need.
Similar Threads
-
how to import a picture into an applet
By cecily in forum Java AppletsReplies: 2Last Post: 01-15-2010, 08:51 PM -
Setting a picture on a button
By tomhcole in forum New To JavaReplies: 2Last Post: 09-26-2008, 03:30 AM -
Picture help
By deathnote11 in forum AWT / SwingReplies: 13Last Post: 06-03-2008, 05:46 PM -
Picture in a JFrame problem
By saytri in forum New To JavaReplies: 3Last Post: 01-12-2008, 09:44 AM -
Print a picture file
By oli001 in forum New To JavaReplies: 0Last Post: 11-26-2007, 01:40 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks