Scrolling an Image

I am novice user of Java. Now I have to develop an image processing application in java. How can I scroll an image after it is displayed in a panel.( What i am using is a class called imagepanel extends Japanel)Please help me
[239 byte] By [AjishDharmana] at [2007-11-27 4:53:27]
# 1

JPanel panel = new JPanel();

JLabel lbl = new JLabel(new ImageIcon("Hello.jpg"));

panel.add(lbl);

JScrollPane pane = new JScrollPane(panel);

getContentPane().add(pane);

You can add your image to the label and add the label to the panel. Finally add your panel to the scrollpane.

AnanSmritia at 2007-7-12 10:07:50 > top of Java-index,Java Essentials,New To Java...