super ( frameOwner );
setLayout ( new BorderLayout() );
canvasImage = new Canvas() {
public Dimension getPreferredSize () {
return ( dimImage );
}
public void paint ( Graphics g ) {
super.paint ( g );
g.drawImage ( getImage(), 0, 0, this );
}
};
add ( canvasImage, BorderLayout.CENTER );
setImage ( image );