Is SpringLayout a fixed-size layout manager?

99封情书 提交于 2020-03-05 00:22:46

问题


I know the following Java Swing layout managers: FlowLayout, BoxLayout, BorderLayout, GridLayout, GroupLayout (which I avoid using), and GridBagLayout.

I call GridBagLayout a fixed-size layout manager as it defines rows and columns with fixed size. I would not use it in a responsive application if I want all my panels to be resizable. I would try to combine a few of the other layout managers instead.

Out of curiosity I'm considering adopting a new layout manager, SpringLayout, for an app revamp. But after glancing at the documentation I'm under the impression SpringLayout is a fixed-size layout manager as well. So, is it? Will it hurt my app's responsiveness?

来源:https://stackoverflow.com/questions/60208498/is-springlayout-a-fixed-size-layout-manager

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