How can I globally compress Matisse-generated GroupLayout and perhaps other gap spacings to make Swing dialogs generated with Matisse and GroupLayout more compact?
I have used Matisse to re-implement in Java Swing some large dialogs originally developed for Windows in Visual Basic's GUI builder.
The results in the Swing Windows L&F are very similar to native (of a certain age), except more "spread out." At lower res they leak off the screen. This is a real problem for the app.
Measuring shows all the gaps proportionally bigger than the Windows defaults. (The way Swing scales for different resolutions is not helping either.) This includes ContainerGap
s emitted by Matisse and L&F-controlled gaps between GUI components.
I have looked at GroupLayout
documents and the Matisse documentation I can find. I've looked at L&F parameters and the ContainerGap
and related classes in the GroupLayout
source. Nothing is taking me where I need to go.
All insight appreciated.