@ Override public void openImageSet ( String ... files ) { synchronized ( lockProcessing ) { if ( processing ) { JOptionPane . showMessageDialog ( this , "Still processing" ) ; return ; } } // disable the menu until it finish processing the images setMenuBarEnabled ( false ) ; super . openImageSet ( files ) ; }
Prevent the user from tring to process more than one image at once