944,219 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 513
  • Java RSS
Oct 3rd, 2009
0

loading an image to frame

Expand Post »
hi ppl. I've done 8 frames on JAVA netbeans 6.7 with the default color but now i'm required to put a background picture(image), i have no idea how..
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shiri is offline Offline
2 posts
since Oct 2009
Oct 3rd, 2009
1

Re: loading an image to frame

You can create an ImageIcon and display it as the content of a JLabel. Then put the JLabel in the content pane of your JFrame. Look here:

Tutorial
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Assistance with Java code
Next Thread in Java Forum Timeline: Java media player





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC