Changeset 2985


Ignore:
Timestamp:
07/16/07 14:04:43 (13 years ago)
Author:
melissa
Message:

Scroll the window so that the next matching line is at the top. No longer tries to highlight matching lines (may add this later).

Location:
trunk/loci/plugins
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Importer.java

    r2955 r2985  
    325325        } 
    326326 
    327         SearchablePanel spanel = new SearchablePanel();  
    328         spanel.setColumnHeadings("Key\tValue"); 
    329         spanel.append(sb.toString()); 
    330         Frame w = new Frame("Metadata - " + currentFile);  
    331         w.add(spanel); 
    332         w.setSize(new Dimension(400, 400)); 
    333          
    334         w.addWindowListener(new WindowAdapter() { 
    335           public void windowClosing(WindowEvent e) { 
    336             Frame frame = (Frame) e.getSource(); 
    337             frame.setVisible(false); 
    338             frame.dispose(); 
    339           } 
    340         }); 
    341          
    342         WindowManager.addWindow(w);  
     327        SearchableWindow w = new SearchableWindow("Metadata - " + id, 
     328          "Key\tValue", sb.toString(), 400, 400);  
    343329        w.setVisible(true);  
    344330      } 
Note: See TracChangeset for help on using the changeset viewer.