Scrollable « JPanel « Java Swing Q&A





1. Scrollable flow panel    stackoverflow.com

I need to create a panel where I can put some rectangles and it automatically reorder just inserting a scrollbar and growing up vertically. Also this panel can be resizable and ...

2. How to make a large scrollable panel?    coderanch.com

your code looks fine. the scrollpane will only show up when the panel is only partially visible. if this is not the case, you can try two things: - set the JScrollPane to display the scrollbars always, - set the preferred size of the viewport of the scrollpane (scrollpane.getViewport().setPreferredSize(Dimension)). but as your code looks ok, these changes won't have an effect, ...