开发者

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

开发者 https://www.devze.com 2022-12-23 04:40 出处:网络
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.

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.


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?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消