Tuesday, June 26, 2007 02:04 PM
I have not looked at your code. So some basic questions,...
- Have you created a JScrollPane and added your panel to it?
- Have you set the layout of the panel to null?
- Have you forcefully set the preferred size of the panel to restrict it to some size?
I would tyically do something like this...
JPanel panel = new JPanel();
panel.setLayout(new XYZLayout()); //any layout
JScrollPane pane = new JScrollPane
If you could post some code, it would be easier to find why it doesn't work...
Hope it helped