Probaj sledece: Napravi panel koji ces strpati u scrollpane
Code:
public class SomeDrawingPanel extends JPanel {
protected void paintComponent(Graphics g) {
super.paintComponent(g);
BufferedImage bi = initializeImage();//ovo je neka metoda koja vraca sliku
g.drawImage(bi,
dx, dy, dx+cellWidth, dy+cellHeight,
sx, sy, sx+cellWidth, sy+cellHeight,
null);
}
}
Posle toga, iz neke od metoda u kojoj kreiras GUI, zovi
Code:
JScrollPane scroller = new JScrollPane(new SomeDrawingPanel());
Mrzim GUI, al sam mozda pomogao... :)