Ignore:
Timestamp:
May 7, 2011, 5:14:12 PM (13 years ago)
Author:
mlg
Message:

Adds a wait cursor for time consuming operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/browser/BrowserPanel.java

    r10748 r10811  
    3232import fr.mael.jiwigo.transverse.util.Tools;
    3333import fr.mael.jiwigo.ui.comments.CommentsDialog;
     34import fr.mael.jiwigo.ui.mainframe.MainFrame;
    3435
    3536/**
     
    373374            }
    374375        } else if (e.getSource().equals(next)) {
     376            MainFrame.getInstance().showWaitCursor(true);
    375377            imagePanel.setDrawSelection(false);
    376378            ImagesManagement.getInstance().next();
     
    380382                LOG.error(Tools.getStackTrace(e1));
    381383            }
    382 
     384            MainFrame.getInstance().showWaitCursor(false);
    383385        } else if (e.getSource().equals(previous)) {
     386            MainFrame.getInstance().showWaitCursor(true);
    384387            imagePanel.setDrawSelection(false);
    385388            ImagesManagement.getInstance().previous();
     
    389392                LOG.error(Tools.getStackTrace(e1));
    390393            }
    391 
     394            MainFrame.getInstance().showWaitCursor(false);
    392395        } else if (e.getSource().equals(rotateLeft)) {
    393396            imagePanel.rotationGauche();
Note: See TracChangeset for help on using the changeset viewer.