This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Split a frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Split a frame" Watch "Split a frame" New topic
Author

Split a frame

Vidya Ram
Ranch Hand

Joined: Apr 22, 2003
Posts: 62
Hi all,
I'm new to this Java GUI field and was wondering as to how to split a frame for an application like Chat, where I need to separate out the incoming and outgoing texts in two separate areas using only AWT.
I accomplished it using JSplitPane but my project specification is not to use Swing at all.
Any help is highly appreciated.
Thanks,
Vidya.
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
Have 2 panels, InComongPanel and OutGoingPanel on your frame. Add each of the components (such as textareas, buttons etc.) to the corresponding panel and add those panels to the Frame.
Vidya Ram
Ranch Hand

Joined: Apr 22, 2003
Posts: 62
Thanks Vijay. I will try that.
Vidya.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Split a frame