Java Swing GridLayout “Cell span”?

妖精的绣舞 提交于 2019-11-30 02:48:48

问题


Is there a way to make a single element in a Grid layout take up more than 1 location in a grid. Example: I want to create a textbox that takes up an entire grid row, is there some way to do this?


回答1:


Use GridBagLayout instead.



来源:https://stackoverflow.com/questions/9219886/java-swing-gridlayout-cell-span

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