Changeset 6253
- Timestamp:
- 2003-12-12T17:54:38+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/FileAssociationDialog.java
r6209 r6253 121 121 command_field = new JTextField(); 122 122 browse_button = new JButton(); 123 browse_button.setEnabled(!Utility.isMac()); 124 browse_button.setMnemonic(KeyEvent.VK_B); 125 browse_button.setOpaque(false); 126 123 127 124 128 JPanel button_pane = new JPanel(); 125 129 add_button = new JButton(); 126 130 add_button.setEnabled(false); 131 add_button.setMnemonic(KeyEvent.VK_A); 132 add_button.setOpaque(false); 127 133 replace_button = new JButton(); 128 134 replace_button.setEnabled(false); 135 replace_button.setMnemonic(KeyEvent.VK_P); 136 replace_button.setOpaque(false); 129 137 remove_button = new JButton(); 130 138 remove_button.setEnabled(false); 139 remove_button.setMnemonic(KeyEvent.VK_R); 140 remove_button.setOpaque(false); 131 141 close_button = new JButton(); 142 close_button.setMnemonic(KeyEvent.VK_C); 143 close_button.setOpaque(false); 132 144 133 145 // Connection … … 143 155 existing_associations_table.getSelectionModel().addListSelectionListener(new ExistingAssociationsTableListener()); 144 156 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 } 146 163 Dictionary.setBoth(close_button, "FileAssociationDialog.Close", "FileAssociationDialog.Close_Tooltip"); 147 164 Dictionary.setBoth(remove_button, "FileAssociationDialog.Remove", "FileAssociationDialog.Remove_Tooltip");
Note:
See TracChangeset
for help on using the changeset viewer.