
Re: Miglayout button overflows constraints
Well the thing is i am maintaining legacy code (which is VERY badly written).
The declaration of the layout is in the class that creates the panel in a dialog.
The panel gets populated in other classes and by various components. So the component will not always be a button. I "fixed" it by tracking down all the code that inserts components into the panel and added the wmax constraint but it's ugly and not maintainable since the maximum width is declared in the class that creates the component. I did create a static final int that specifies the width and i reference it in the insertion code but as you can see it's a very bad solution.
So there is no global way to force the maximum width of components inserted into the MigLayout like you can specify the column sizes?
