If you create a JScrollPane that has a viewport larger than the JScrollPane\'s component, it displays that component in the upper left.
Is there any way to change this b
With the suggestion from Andrew, you can't have the view smaller than the viewport (and still centered).
The cleanest way is doing it directly from the layout manager, overriding ViewportLayout. There is an implementation in the source of:
http://www.randelshofer.ch/multishow
Look for the class ZoomableViewportLayout, which does the job perfectly.