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/mainframe/MainFrame.java

    r9880 r10811  
    6666    public static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory
    6767            .getLog(MainFrame.class);
     68
    6869    /**
    6970     * the categories tree
     
    220221    }
    221222
     223    public void showWaitCursor(boolean enable) {
     224        if (enable) {
     225            CursorSetter.setWaitCursor(this);
     226        } else {
     227            CursorSetter.setDefaultCursor(this);
     228        }
     229    }
     230
    222231    public void addTabb(IThumbnailPanel panel) {
    223232        JScrollPane scrollPaneImagesPanel = new JScrollPane((JPanel) panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
     
    245254        //is the name of the category
    246255        if (!found && !isSearch) {
    247             tabbedPane.addTab(panel.getCategory().getName(), scrollPaneImagesPanel, new ImageIcon(Tools
    248                     .getURL("fr/mael/jiwigo/img/closetab.png")));
     256            tabbedPane.addTab(panel.getCategory().getName(), scrollPaneImagesPanel,
     257                    new ImageIcon(Tools.getURL("fr/mael/jiwigo/img/closetab.png")));
    249258            //if it's for a research, the title of the tab
    250259            //if the query string
Note: See TracChangeset for help on using the changeset viewer.