JComponent Placement

Thread Solved
Reply

Join Date: Aug 2008
Posts: 196
Reputation: llemes4011 is an unknown quantity at this point 
Solved Threads: 13
llemes4011 llemes4011 is offline Offline
Junior Poster

Re: JComponent Placement

 
0
  #11
Jul 5th, 2009
huh. I tried it without the JEmailMenuBar (It has a JMenuBar and a JToolbar in it arranged with a GridBagLayout) and it still doesn't work for me....

Are there any methods that I'm forgetting to call, or something like that?
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,428
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 434
adatapost's Avatar
adatapost adatapost is offline Offline
Nearly a Posting Maven

Re: JComponent Placement

 
0
  #12
Jul 5th, 2009
Use setJMenuBar method: It has a seperate layer.
  1. setJMenuBar(menuBar);
Last edited by adatapost; Jul 5th, 2009 at 1:45 am.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 196
Reputation: llemes4011 is an unknown quantity at this point 
Solved Threads: 13
llemes4011 llemes4011 is offline Offline
Junior Poster

Re: JComponent Placement

 
0
  #13
Jul 5th, 2009
Ok, I changed my JEmailMenuBar to extend the JMenuBar class, ad added it through the setJMenuBar() method, but it didn't help the contentViever's sizing problems....
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,428
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 434
adatapost's Avatar
adatapost adatapost is offline Offline
Nearly a Posting Maven

Re: JComponent Placement

 
0
  #14
Jul 5th, 2009
What is the current size of contentViever? Size of contentViever will be grows or shrink with frame.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 196
Reputation: llemes4011 is an unknown quantity at this point 
Solved Threads: 13
llemes4011 llemes4011 is offline Offline
Junior Poster

Re: JComponent Placement

 
0
  #15
Jul 5th, 2009
contentViewer's size is the size of the Frame. however. the JSplitFrame has a size of (0,0)
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,428
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 434
adatapost's Avatar
adatapost adatapost is offline Offline
Nearly a Posting Maven

Re: JComponent Placement

 
1
  #16
Jul 5th, 2009
If you want to change the size of any control use setPreferredSize() method.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 196
Reputation: llemes4011 is an unknown quantity at this point 
Solved Threads: 13
llemes4011 llemes4011 is offline Offline
Junior Poster

Re: JComponent Placement

 
0
  #17
Jul 5th, 2009
YAY! I got it, Thanks so much for your help =D It ended up that It was the placement of some static variables. I was trying it access them from another package and I think some how it was throwing it off somehow... the whole static thing is still kind of new to me O.o but very useful.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC