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, GridLayout
, 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?
SMITA6076 0 Light Poster
mKorbel 274 Veteran Poster
SMITA6076 0 Light Poster
SMITA6076 0 Light Poster
SMITA6076 0 Light Poster
mKorbel 274 Veteran Poster
SMITA6076 0 Light Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
SMITA6076 0 Light Poster
mKorbel 274 Veteran Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.