add a JScrollPane to your contentPane and then add your components to the JScrollPane instead of the contentPane. I have found that this works pretty well when everything is contained in a JPanel, and you set the preferredSize of the JPanel.
You can also set the contentPane of your JFrame to a JScrollPane.
-gc "I don't look busy because I did it right the first time."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.