I assume you are using AWT because you just said frame and panel. I was using Swing, but should work the same. Here is what I did. I created a JFrame then set a JPanel as it's contentPane. Then I created a JScrollPane and placed that on my JFrame. I then created another JPanel and placed it inside the JScrollPane. Be sure and set the JScrollPane Deminsions no larger than the JFrame, but the JPanel you place inside can be any size you want. Or you could use a JTextArea or whatever. Doesn't have to be a JPanel. Hope that helps. If you need some code, let me know.