GridBagLayout Formatting

一曲冷凌霜 提交于 2019-12-12 03:59:59

问题


Solved using box layout in the panels that have 1 column and many rows.


回答1:


I suggest you use a Table instead of working with single labels and GridBagLayout.

It might be possible to use Colspan, too, see: Jtable Row Span and Column Span

If its just a View (No Buttons, etc.), you could also consider to use a JEditorPane and render your View with HTML, that might be the easiest way.



来源:https://stackoverflow.com/questions/32973167/gridbaglayout-formatting

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