I noticed you specified AWT, is Swing unacceptable for some reason?
If you can use Swing, then JSplitPane is the class you want and has already been mentioned. As this is an instant messaging program you most likely want a VERTICAL_SPLIT with one component on top of the other rather than a horizontal as was defined in the above post. You should also be aware of the resizeWeight property which has a value of 0.0 (defualt) to 1.0. 0.0 will assign all extra space to the right/bottom component, and if your program follows the typical form that's probably reverse of what you want. 1.0 would assign it to the top/left component (which is likely your receiving window). Also, the divider location can be set using a double to make it proportional rather than an absolute which was used in the above post.
If it must be AWT only it will be much more annoying to do.
Joined: Oct 19, 2002
Michael Dunn, thanks for telling me it's a JSplitPane that I should use.
Stephen Boston, thanks for the sample code.
Ken Blair, thanks for being meticulous - realized that my question was asking for a AWT solution. This is because my current code (done half way) is in AWT. Looks like I'll have to just switch to Swing... rewriting my code. Thanks for customizing your answers to my needs (VERTICAL_SPLIT etc). Thanks for informing that "If it must be AWT only it will be much more annoying to do".