Changeset 7956


Ignore:
Timestamp:
04/10/12 17:45:38 (7 years ago)
Author:
aivar
Message:

SLIM Plugin: Checks for fitting images closing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/loci/slim/fitting/images/AbstractBaseColorizedImage.java

    r7937 r7956  
    88import java.awt.event.FocusEvent; 
    99import java.awt.event.FocusListener; 
     10import java.awt.event.WindowAdapter; 
     11import java.awt.event.WindowEvent; 
    1012import java.awt.image.IndexColorModel; 
    1113import java.util.ArrayList; 
     
    7981        _stackWindow.setVisible(true); 
    8082        _stackWindow.addFocusListener(new FocusListener() { 
     83            @Override 
    8184            public void focusGained(FocusEvent e) { 
    8285                int channelIndex = _stackWindow.getSlice() - 1; 
     
    8689             
    8790            public void focusLost(FocusEvent e) { } 
    88         });   
     91        }); 
     92        _stackWindow.addWindowListener(new WindowAdapter() { 
     93            @Override 
     94            public void windowClosing(WindowEvent e) { 
     95                System.out.println("Closing fitted image " + _title); 
     96            } 
     97        }); 
    8998         
    9099        _histogramDataChannels 
Note: See TracChangeset for help on using the changeset viewer.