public void setInputImage ( BufferedImage image ) { inputImage = image ; SwingUtilities . invokeLater ( new Runnable ( ) { public void run ( ) { if ( inputImage == null ) { originalCheck . setEnabled ( false ) ; } else { originalCheck . setEnabled ( true ) ; origPanel . setImage ( inputImage ) ; origPanel . setPreferredSize ( new Dimension ( inputImage . getWidth ( ) , inputImage . getHeight ( ) ) ) ; origPanel . repaint ( ) ; } } } ) ; }
Specifies an image which contains the original input image . After this has been called the view input image widget is activated and when selected this image will be displayed instead of the main GUI . This functionality is optional .