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: border-layout
How do I put two Jpanels/Jbuttons in the borderlayout north section?
How do I display two JPanels in the ‘North’ in borderlayout? Here’s and example code that outputs a GUI with three distinct rows, Top, Middle, Bottom. There’s one button covering the first row, 3 buttons covering the second row, and one covering the bottom row. Output of above code: output of above code However, I’d like there to be two
Need help on Java Swing JFrame
I’m very new to Swing and I need to build a JFrame that: Has an image on top. Below the image has 16 little images divided into 4 groups (4 “panels”), on the same “row”. Below those 16 images I need 4 “panels” on the same “row”. Every panel contains some horizontal scrollable images (of the same size). Below those