Hi Guys

I've struck a problem.

I am writing some classes that load a series of JPEGs convert
them to thumbnails and diplay them on a JPanel. Trouble is I can't
seem to enclose the JPanel in a JScrollPane. The code I've written
displays the Scrollbar but there is no slide button/scroller and the
JPanel overuns the JFrame.
___________

//CREATE PANEL TO DRAW IMAGES ON AND PASS IN
FILEARRAY
JPanel panel = new FirstPanel(fileArray);
JScrollPane areaScrollPane = new JScrollPane(panel);

areaScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_
SCROLLBAR_ALWAYS);
areaScrollPane.setPreferredSize(new Dimension(300,300));
________

Can anyone help.

Thanks
Ed Brown

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to