943,571 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1721
  • Java RSS
Aug 23rd, 2007
0

layout textarea

Expand Post »
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..



Java Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 9
Solved Threads: 0
Newbie Poster
w32.sysfile is offline Offline
14 posts
since Aug 2007
Aug 23rd, 2007
0

Re: layout textarea

The GridBagLayout would accomplish this very easily.
http://java.sun.com/docs/books/tutor...t/gridbag.html
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,756 posts
since May 2007
Aug 24th, 2007
0

Re: layout textarea

Click to Expand / Collapse  Quote originally posted by Ezzaral ...
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
Reputation Points: 9
Solved Threads: 0
Newbie Poster
w32.sysfile is offline Offline
14 posts
since Aug 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: Looking for another project
Next Thread in Java Forum Timeline: Changing the icons of JButtons





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


Follow us on Twitter


© 2011 DaniWeb® LLC