[Mark as solved]
Well, good thing you kept insisting on a wrapper Copeg, I tried it again after 100 other things, and it worked this time.
No idea how I failed to add it right the first time, must...
Type: Posts; User: JonLane
[Mark as solved]
Well, good thing you kept insisting on a wrapper Copeg, I tried it again after 100 other things, and it worked this time.
No idea how I failed to add it right the first time, must...
Even shorter SSCCE
This code just uses GridLayout, and fills it with exactly as many JPanels as needed to fill the grid.
in this demo we have 10x10 grid, filled with 100 JPanels, they order...
JPanels are weak mindless creatures, they need to grow some back bone and stand up to those Layout managers. I am close to giving up and either not using a layout manager, or trying something other...
ha ha, will do. Can I ask why?
I took out the scroller and it didn't make a difference as I suspected. (but it is needed to test the behavior of window resizing)
import java.awt.*;
import javax.swing.*;
public class SSCCE extends JFrame {
public static void main(String[] args)
{
//This block creates a panel(which uses grid layout) to put in the...
My code compiles and runs, but I have a behavior problem with my Layout managers.
This is the creation of the JFrame which uses BorderLayout.
I use Border because I like/need the Quality that...