Image image = getImage( getDocumentBase(), getParameter("image") ); ImageComponent canvas = new ImageComponent( image ); setLayout( new BorderLayout() ); add( "Center", new ComponentScroller(canvas) );