| | |
layout textarea
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2007
Posts: 14
Reputation:
Solved Threads: 0
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..
P.S:content is the container
i can put the bottom textarea there but it is way to small
Thanks.
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)
content.add(menubar,BorderLayout.NORTH); content.add(new JScrollPane(TArea1)); content.add(new JScrollPane(TArea2),BorderLayout.SOUTH);
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.
The GridBagLayout would accomplish this very easily.
http://java.sun.com/docs/books/tutor...t/gridbag.html
http://java.sun.com/docs/books/tutor...t/gridbag.html
•
•
Join Date: Aug 2007
Posts: 14
Reputation:
Solved Threads: 0
•
•
•
•
The GridBagLayout would accomplish this very easily.
http://java.sun.com/docs/books/tutor...t/gridbag.html
![]() |
Similar Threads
- Layout Tables to CSS (HTML and CSS)
- Layout in CSS (HTML and CSS)
- The New Layout (Website Reviews)
- Redesigned Forum layout (DaniWeb Community Feedback)
Other Threads in the Java Forum
- Previous Thread: Looking for another project
- Next Thread: Changing the icons of JButtons
| Thread Tools | Search this Thread |
actuate android api applet application applications array arrays automation balls bank binary bluetooth business chat class classes clear client code codesnippet collections component database db defaultmethod development dice dragging draw ebook eclipse error event exception formatingtextintooltipjava fractal game givemetehcodez graphics gui html ide image infinite input integer invokingapacheantprogrammatically j2me java javaprojects jni jpanel julia linux list loop looping map method methods mobile mysql netbeans newbie numbers openjavafx oracle parameter php print problem program programming project recursion repositories scanner screen scrollbar server set size sms sort sorting sql sqlserver state storm string sun superclass swing swt text-file threads time tree windows






