I have a
JFrame window to which I am trying to add 3 panels. One panel is for input (text areas and their labels which I already have arranged within the panel), one is for a set of buttons, and one is for output. I want the the input and button panels to share the left half of the window (input panel on top and button panel below) and the output panel to take up the entire right half of the window by itself. Because of this,
BoxLayout , and
BorderLayout don't work by themselves. I just tried making one container and adding the input and button panels to it with the input panel above and the button panel below. I then made a second container and tried adding the first container to it on the left side and the output panel to the right side. The compiler told me I can't add a container's parent to itself. How can I make two panels share the left side and have a third have the right side to itself?