protected Component createContentPane ( ) { Image image = getImage ( ) ; if ( image != null ) { return new ImageCanvas ( image ) ; } return null ; }
Returns a component that displays an image in a canvas .