layout textarea

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

Join Date: Aug 2007
Posts: 14
Reputation: w32.sysfile is an unknown quantity at this point 
Solved Threads: 0
w32.sysfile w32.sysfile is offline Offline
Newbie Poster

layout textarea

 
0
  #1
Aug 23rd, 2007
ok,
i wanna ask about layouting 2 textareas..

i have 2 text areas, the problem is i want to put 1 in the top 1 and the second 1 in the bottom, but i want to set the height of the top textarea become 2/3 of the window while the bottom textarea height is 1/3 of the window..

can any1 help me??

i am making something like MSN Messenger Layout..



  1.  
  2. content.add(menubar,BorderLayout.NORTH);
  3. content.add(new JScrollPane(TArea1));
  4. content.add(new JScrollPane(TArea2),BorderLayout.SOUTH);
P.S:content is the container

i can put the bottom textarea there but it is way to small

Thanks.
Last edited by w32.sysfile; Aug 23rd, 2007 at 8:06 am.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,508
Reputation: Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future 
Solved Threads: 522
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: layout textarea

 
0
  #2
Aug 23rd, 2007
The GridBagLayout would accomplish this very easily.
http://java.sun.com/docs/books/tutor...t/gridbag.html
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 14
Reputation: w32.sysfile is an unknown quantity at this point 
Solved Threads: 0
w32.sysfile w32.sysfile is offline Offline
Newbie Poster

Re: layout textarea

 
0
  #3
Aug 24th, 2007
Originally Posted by Ezzaral View Post
The GridBagLayout would accomplish this very easily.
http://java.sun.com/docs/books/tutor...t/gridbag.html
thanks man, now i can do it, thanks, it works
Reply With Quote Quick reply to this message  
Reply

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



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



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC