private JPanel createContentCanvas ( ) { if ( contentCanvas != null ) { contentCanvas = new BrowserPanel ( proc . getPage ( ) ) ; contentCanvas . setLayout ( null ) ; selection = new Selection ( ) ; contentCanvas . add ( selection ) ; selection . setVisible ( false ) ; selection . setLocation ( 0 , 0 ) ; } return contentCanvas ; }
Creates the appropriate canvas based on the file type