One of my dialogs is composed of several panes. One of these panes in the bottom of the JDialog holds all buttons, all of which are aligned horizontally in a row setting the layout of the containing JPanel to FLowLayout.
When decreasing the size of the dialog, at a certain point, that is the horizontal space of the pane isn't enough anymore to display all buttons in a single row, wrapping comes into play.
It looks really bad!
How can I avoid this wrapping behavior in FlowLayout? Do I have to use another LayoutManager like BoxLayout?
Another alternative would be to to limit the minimum size ot the containing window.
But how can I figure out the total horizontal size of the buttons row? This value should be the minimum width of the window.