Jose Campana wrote:
What's Wrong with my ScrollPane ?
The scroll pane uses the preferred size of its viewport component. Usually the layout manager takes care of that but you don't use one. That's in 99.9999999999999999999% of the cases a bad idea. Wait, make that 100%*. Also, if you call setPreferredSize, that will always take precedence of the preferred size as calculated by the layout manager.
Try reading that layout manager tutorial again, and abandon using a null layout and calling setBounds yourself. You will see that, with the proper layout manager, the preferred size will be recalculated properly and your application will work.
* Even if you need to position and size components manually you would still need a layout manager to calculate the preferred and minimum sizes.