posted 17 years ago
container.add(scrollpane); (where, presumably, 'container' is Container cont = getContentPane() ;)
here the scrollpane will occupy the frame (almost), so, for the scrollpane to work,
the panel needs to be a bigger size than that of the frame/scrollpane
e.g.
if the frame's size is (400,300), include this line and see what happens
panel.setPreferredSize(new Dimension(600,400));
if, by some chance, you are using a null layout, you have a lot of work ahead of you.
[edit] disable smileys
[ September 27, 2007: Message edited by: Michael Dunn ]