What other method can I use to make spaces in this JFrame?
I used a borderLayout, added a JLabel in north then added a jpanel into the center with a grid layout (8,1) and then added two empty panels to make the extra spaces on the far left and right. So my question, is there another way to make these spaces?
Frame I want
Frame I made
SOURCE: make spaces in this JFrame
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.