I’m very new to Java Swing. I’m using y-axis BoxLayout on an “outer” panel that contains 2 inner panels. Here you can see with this basic code, the 2 inner panels get an equal share of the height avaiable in the box layout (first inner panel yellow, second innner panel orange) But then when I add seperate layout manager to
Tag: boxlayout
Misaligned box in box layout when adding JScrollpane
I wanted to create a simple table with the some of the features of a JTable, but easier to style, so I created a couple of boxes in a box layout, one for the header and another to contain the cells. When I added the JScrollPane to the cell’s box, it indented the header box and now the don’t line