• Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent - Draggable Components??

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am developing a Chat application. It is almost over, just that it needs a little modification.
The GUI appears something like this
|-----------------------------|
| |
| JTextPane |
| |
|-----------------------------|
| JTextArea |
| |
|-----------------------------|
________
| | SEND |
|_______|
Now that u know how my message box looks. I am using Borderlayout to achieve this look. Now what i want is that i should be able to drag the boundary between the JTextArea and JTextPane. How do i achive this??
Kindest regards
...saj
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sajee,
Check out the JSplitPane. You can have it hold the text components in the center of a BorderLayout and have the button in the south part of a BorderLayout.
Regards,
Manfred.
[This message has been edited by Manfred Leonhardt (edited July 24, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!