Skip a row GridBagLayout

╄→гoц情女王★ 提交于 2019-12-06 01:45:49
j.gardner117

Figured it out much cleaner than adding empty components... there is a GridBagConstraint named insets that allows you to choose the white-space between the component you're adding and the other components around it in any direction. Thanks for the answers though!

Did you try adding empty components in the row you want to keep blank ? Like empty JPanels ? Or maybe invisible components.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!