Question

I have a Component that uses MigLayout as its LayoutManager. It is set to grow inside the JScrollPane to occupy the whole available width. So if I resize the appliation's frame, the JScrollPane is as wide as the frame is and the inside component is as well.

However, when I shrink the frame, the grown component inside the JScrollPane just keeps its width and does not shrink, so horizontal scrollbars are displayed.

I am aware of JScrollpane needs to shrink its width and implemented the Scrollable-Interface with getScrollableTracksViewportWidth=true but MigLayout does not seem to honor it.

Any advice? thanks

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top