Class MultiLineFlowLayout

java.lang.Object
java.awt.FlowLayout
eu.bandm.tools.graficUtils.MultiLineFlowLayout
All Implemented Interfaces:
LayoutManager, Serializable

public abstract class MultiLineFlowLayout extends FlowLayout
Needed for the contents of the option arguments JPanel.
This contents is a sequence of widgets for data input (or groups thereof!), and they should "flow" in the lines which make up a block in the right half of the top-level "grid-bag".
(The normal "FlowLayout" from javax.swing does not respect a maximum size, but makes the container above grow beyond all limits, so no line break would ever happen.)

WE FOUND THIS CODE SOMEWHERE IN THE NET, BUT REGRETTABLY DID NOT MEMORIZE. We tried to find it again (for reasons of acknowledgement), but failed. Sorry.

There is a similar code called "WrapLayout" by Rob Camick at https://tips4java.wordpress.com/2008/11/06/wrap-layout/ https://github.com/tips4java/tips4java/blob/main/source/WrapLayout.java

See Also: