Changeset 6253


Ignore:
Timestamp:
2003-12-12T17:54:38+13:00 (20 years ago)
Author:
jmt12
Message:

Made the buttons non-opaque in order for them to paint nicely under mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/FileAssociationDialog.java

    r6209 r6253  
    121121    command_field = new JTextField();
    122122    browse_button = new JButton();
     123    browse_button.setEnabled(!Utility.isMac());
     124    browse_button.setMnemonic(KeyEvent.VK_B);
     125    browse_button.setOpaque(false);
     126   
    123127
    124128    JPanel button_pane = new JPanel();
    125129    add_button = new JButton();
    126130    add_button.setEnabled(false);
     131    add_button.setMnemonic(KeyEvent.VK_A);
     132    add_button.setOpaque(false);
    127133    replace_button = new JButton();
    128134    replace_button.setEnabled(false);
     135    replace_button.setMnemonic(KeyEvent.VK_P);
     136    replace_button.setOpaque(false);
    129137    remove_button = new JButton();
    130138    remove_button.setEnabled(false);
     139    remove_button.setMnemonic(KeyEvent.VK_R);
     140    remove_button.setOpaque(false);
    131141    close_button = new JButton();
     142    close_button.setMnemonic(KeyEvent.VK_C);
     143    close_button.setOpaque(false);
    132144
    133145    // Connection
     
    143155    existing_associations_table.getSelectionModel().addListSelectionListener(new ExistingAssociationsTableListener());
    144156    Dictionary.setBoth(add_button, "FileAssociationDialog.Add", "FileAssociationDialog.Add_Tooltip");
    145     Dictionary.setBoth(browse_button, "FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip");
     157    if(Utility.isMac()) {
     158        Dictionary.setBoth(browse_button, "FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip_Mac");
     159    }
     160    else {
     161        Dictionary.setBoth(browse_button, "FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip");
     162    }
    146163    Dictionary.setBoth(close_button, "FileAssociationDialog.Close", "FileAssociationDialog.Close_Tooltip");
    147164    Dictionary.setBoth(remove_button, "FileAssociationDialog.Remove", "FileAssociationDialog.Remove_Tooltip");
Note: See TracChangeset for help on using the changeset viewer.