Changeset 7696


Ignore:
Timestamp:
04/13/11 17:38:27 (9 years ago)
Author:
aivar
Message:

Getting the quit button to work correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/loci/slim/SLIMProcessor.java

    r7677 r7696  
    4545import java.awt.Canvas; 
    4646import java.awt.Color; 
     47import java.awt.Component; 
    4748import java.awt.Rectangle; 
    4849import java.awt.event.FocusEvent; 
     
    231232            doFits(); 
    232233        } 
     234        IJ.log("QUIT"); 
    233235    } 
    234236 
     
    361363                } 
    362364                if (m_quit) { 
     365                    hideUIPanel(uiPanel); 
    363366                    return; 
    364367                } 
     
    379382            uiPanel.reset(); 
    380383        } 
     384        hideUIPanel(uiPanel); 
     385    } 
     386 
     387    private void hideUIPanel(IUserInterfacePanel uiPanel) { 
     388        m_grayScaleImage.setListener(null); 
     389        //TODO uiPanel is still hooked up as start stop listeners to decay curves! 
     390        uiPanel.getFrame().setVisible(false); 
    381391    } 
    382392 
Note: See TracChangeset for help on using the changeset viewer.