问题
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