Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Split a frame

 
Vidya Ram
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vijay. I will try that.
Vidya.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic