Changeset 6318 for trunk/gli/src/org/greenstone/gatherer/collection
- Timestamp:
- 2003-12-19T14:45:12+13:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/collection
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/DeleteCollectionPrompt.java
r6146 r6318 46 46 import org.greenstone.gatherer.collection.BasicCollectionConfiguration; 47 47 import org.greenstone.gatherer.collection.Collection; 48 import org.greenstone.gatherer.gui.GLIButton; 48 49 import org.greenstone.gatherer.gui.ModalDialog; 49 50 import org.greenstone.gatherer.gui.SimpleMenuBar; … … 95 96 public DeleteCollectionPrompt() { 96 97 super(Gatherer.g_man); 97 close_button = new JButton();98 close_button = new GLIButton(); 98 99 close_button.setMnemonic(KeyEvent.VK_C); 99 100 Dictionary.setBoth(close_button, "General.Close", "General.Close_Tooltip"); … … 110 111 Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List"); 111 112 list_model = new DefaultListModel(); 112 ok_button = new JButton();113 ok_button = new GLIButton(); 113 114 ok_button.setMnemonic(KeyEvent.VK_D); 114 115 Dictionary.setBoth(ok_button, "DeleteCollectionPrompt.Delete", "DeleteCollectionPrompt.Delete_Tooltip"); -
trunk/gli/src/org/greenstone/gatherer/collection/ExportCollectionPrompt.java
r6149 r6318 49 49 import org.greenstone.gatherer.collection.BasicCollectionConfiguration; 50 50 import org.greenstone.gatherer.collection.Collection; 51 import org.greenstone.gatherer.gui.GLIButton; 51 52 import org.greenstone.gatherer.gui.ModalDialog; 52 53 import org.greenstone.gatherer.gui.SimpleMenuBar; … … 114 115 public ExportCollectionPrompt() { 115 116 super(Gatherer.g_man, true); 116 cancel_button = new JButton();117 cancel_button = new GLIButton(); 117 118 cancel_button.setMnemonic(KeyEvent.VK_C); 118 119 Dictionary.setBoth(cancel_button, "General.Close", "General.Close_Tooltip"); … … 138 139 list_label = new JLabel(); 139 140 Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List"); 140 ok_button = new JButton();141 ok_button = new GLIButton(); 141 142 ok_button.setMnemonic(KeyEvent.VK_D); 142 143 Dictionary.setBoth(ok_button, "ExportCollectionPrompt.Export", "ExportCollectionPrompt.Export_Tooltip"); … … 545 546 546 547 JPanel button_pane = new JPanel(); 547 JButton close_button = new JButton("Close"); 548 JButton close_button = new GLIButton("Close"); 549 close_button.setMnemonic(KeyEvent.VK_C); 548 550 close_button.addActionListener(new CloseButtonListener()); 549 551 -
trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionBox.java
r5581 r6318 42 42 import org.greenstone.gatherer.Dictionary; 43 43 import org.greenstone.gatherer.Gatherer; 44 import org.greenstone.gatherer.gui.GLIButton; 44 45 45 46 /** Provides a prompt allowing the user some choice in whether a collection saves. */ … … 115 116 content_pane.add(button_pane); 116 117 // We add both mnemonics and key listener so that the 'y' of yes is underlined, but pressing just [Y] (rather than [CTL]-[Y]) performs a systematic click. 117 yes = new JButton();118 yes = new GLIButton(); 118 119 yes.addActionListener(this); 119 120 KeyListenerImpl key_listener = new KeyListenerImpl(); … … 122 123 Dictionary.setBoth(yes, "General.Yes", "General.Yes_Tooltip"); 123 124 button_pane.add(yes); 124 no = new JButton();125 no = new GLIButton(); 125 126 no.addActionListener(this); 126 127 no.addKeyListener(key_listener); … … 128 129 Dictionary.setBoth(no, "General.No", "General.No_Tooltip"); 129 130 button_pane.add(no); 130 cancel = new JButton();131 cancel = new GLIButton(); 131 132 cancel.addActionListener(this); 132 133 cancel.addKeyListener(key_listener);
Note:
See TracChangeset
for help on using the changeset viewer.