Ignore:
Timestamp:
12/15/11 15:40:53 (8 years ago)
Author:
aivar
Message:

Still working on fitted images, starting UI changes

Location:
trunk/projects/slim-plugin/src/main/java/loci/slim
Files:
2 edited

Legend:

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

    r7821 r7837  
    7272                } 
    7373            ); 
    74  
    7574        } 
    7675    } 
  • trunk/projects/slim-plugin/src/main/java/loci/slim/ui/UserInterfacePanel.java

    r7804 r7837  
    106106    private static final String EXCITATION_CREATE = "Use current X Y"; 
    107107     
    108     private static final String DO_FIT = "Do Fit"; 
    109     private static final String CANCEL_FIT = "Cancel Fit"; 
     108    private static final String MAKE_IMAGES = "Make Images"; 
     109    private static final String CANCEL_IMAGES = "Cancel Images"; 
    110110 
    111111    private static final Border EMPTY_BORDER = BorderFactory.createEmptyBorder(10, 10, 10, 10); 
     
    252252        buttonPanel.add(m_quitButton); 
    253253        buttonPanel.add(Box.createRigidArea(new Dimension(10, 0))); 
    254         m_fitButton = new JButton("Do Fit"); 
     254        m_fitButton = new JButton(MAKE_IMAGES); 
    255255        m_fitButton.addActionListener( 
    256256            new ActionListener() { 
    257257                public void actionPerformed(ActionEvent e) { 
    258258                    String text = (String)e.getActionCommand(); 
    259                     if (text.equals("Do Fit")){ 
     259                    if (text.equals(MAKE_IMAGES)) { 
    260260                        enableAll(false); 
    261261                        setFitButtonState(false); 
     
    822822     
    823823    private void setFitButtonState(boolean on) { 
    824         m_fitButton.setText(on ? DO_FIT : CANCEL_FIT); 
     824        m_fitButton.setText(on ? MAKE_IMAGES : CANCEL_IMAGES); 
    825825    } 
    826826     
    827827    private boolean getFitButtonState() { 
    828         return m_fitButton.getText().equals(DO_FIT); 
     828        return m_fitButton.getText().equals(MAKE_IMAGES); 
    829829    } 
    830830 
Note: See TracChangeset for help on using the changeset viewer.