Hi Kate -
I managed to fix the problem....my code was OK, the problem I was having was that the order in which I created & added the ScrollPane & the Panel I wanted on it was a bit off....its very weird....but this code (which I found elsewhere on JavaRanch) shows a correct order for the components....I dont know if it will make a difference in your app, but it did help me......
import java.awt.*;
import javax.swing.*;
public class
Test extends JFrame
{
public Test()
{
JLabel bigLabel = new JLabel("Really Big Label"); bigLabel.setFont(bigLabel.getFont().deriveFont(200.0F));
JPanel panel = new JPanel();
panel.add(bigLabel);
JScrollPane scrollPane = new JScrollPane(panel); getContentPane().add(scrollPane);
setSize(new Dimension(200, 200));
setVisible(true);
}
public static void main(
String[] s)
{
new Test();
}
}