
It turns out I first collected the line 1, 2, 3 ... then I collected these lines into a form (as in the figure). I use GridBagConstraints.
Now, when adding new fields for input, etc. (circled in blue), the form elements begin to “go”, and if the field is large in height, it shifts all the lower lines.
I do not know how to formulate the question ... in short, how can I make it beautiful?
- You can combine different (and the same) layouts by placing one in the other. Experiment. Do not draw the same for you. - Sergey
- So, roughly speaking, experimenting until enlightenment comes?) - Artem -.... .- ....-.-
- You can search for swing literature where location managers are well described. To know without any experimentation what to expect from them. In addition to the input components, there are all kinds of spacers and springs. May be useful to push or bring elements closer to each other - Sergey
|