I have an undecorated JFrame
which has a lot of components
inside it (such as JSplitPanes
, JPanels with GridBagLayouts, BoxLayouts, BorderLayouts
etc). The code of building this JFrame
is 2500 lines length, so I wouldn't place it here, or it's simpled version, sorry.
When I drag the JFrame
by right
or bottom
side, it resizes OK, but when I drag it by left
or top
side, the components
inside the JFrame
are twitching a lot, so it looks very ugly.
My question is: Why does it happen? How can I prevent it (if I can)? Does anyone fix that in own practice?
UPD: I've written my own resizer for JFrame
. It works OK for other windows, which have less amount of components.