I want to have 9 JPanel components on a JFrame and have 4 JButton components on each panel. But after adding 9 panels, 8 of them disappear.
Anyone can help me to correct this?
I want to have 9 JPanel components on a JFrame and have 4 JButton components on each panel. But after adding 9 panels, 8 of them disappear.
Anyone can help me to correct this?
JFrame uses a BorderLayout by default, you may wish to consider using a different ones, compounding them to achieve your desired results. See Laying Out Components Within a Container for more details.