how to set a JPanel as ur background? is it possible?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2009
Posts: 1
Reputation: yamster is an unknown quantity at this point 
Solved Threads: 0
yamster yamster is offline Offline
Newbie Poster

how to set a JPanel as ur background? is it possible?

 
0
  #1
Apr 17th, 2009
i wanna know if its possible to set one of my JPanels as my background ??
i have been googling up all day n i only find dat u can attach a .gif as ur background or juz plain colour but haven been able to find anything on this... please help wit this... i would need a reply asap as im at wits' end trying to complete this.. ... thank you...
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,492
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 519
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: how to set a JPanel as ur background? is it possible?

 
0
  #2
Apr 18th, 2009
I'm not certain if I understand what you are trying to do exactly, but perhaps it is this: http://faq.javaranch.com/java/BackgroundImageOnJPanel ?
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 989
Reputation: JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice 
Solved Threads: 146
JamesCherrill JamesCherrill is offline Offline
Posting Shark

Re: how to set a JPanel as ur background? is it possible?

 
0
  #3
Apr 18th, 2009
I'm not certain either, but if you mean use it like a desktop picture, try putting it in a JFrame and setting the JFrame with a combination of stuff like
setUndecorated(true);
setFocusableWindowState(false);
toBack();
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC