paul
paul

Reputation: 19

How to add a GridLayout using NetBeans GUI Builder for Java Swing?

We need to place 9 images in a 3 x 3 GridLayout for Java Swing. We tried placing buttons into the grid, which worked fine. The images are on individual Labels. These Labels need to be in the grid, which is not working.

Thanks in advance.

Upvotes: 0

Views: 5385

Answers (2)

paul
paul

Reputation: 19

Okay. We got out GridLayout to work finally. Thanks for all your help. FYI, We are now running Netbeans in Windows 7 (on Windows Vista Compatibility mode).

Upvotes: 1

Tomislav Nakic-Alfirevic
Tomislav Nakic-Alfirevic

Reputation: 10173

I had no problems putting 9 labels with images on a panel using the grid layout just now. I'm using NB 6.8.

How is it not working?

Upvotes: 1

Related Questions