Ignore:
Timestamp:
2003-12-19T14:45:12+13:00 (20 years ago)
Author:
jmt12
Message:

Changed JButtons for GLIButtons, which know whether they should paint their background depending on what platform they are run on, and finished keyboard shortcuts

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  
    4646import org.greenstone.gatherer.collection.BasicCollectionConfiguration;
    4747import org.greenstone.gatherer.collection.Collection;
     48import org.greenstone.gatherer.gui.GLIButton;
    4849import org.greenstone.gatherer.gui.ModalDialog;
    4950import org.greenstone.gatherer.gui.SimpleMenuBar;
     
    9596    public DeleteCollectionPrompt() {
    9697    super(Gatherer.g_man);
    97     close_button = new JButton();
     98    close_button = new GLIButton();
    9899    close_button.setMnemonic(KeyEvent.VK_C);
    99100    Dictionary.setBoth(close_button, "General.Close", "General.Close_Tooltip");
     
    110111    Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List");
    111112    list_model = new DefaultListModel();
    112     ok_button = new JButton();
     113    ok_button = new GLIButton();
    113114    ok_button.setMnemonic(KeyEvent.VK_D);
    114115    Dictionary.setBoth(ok_button, "DeleteCollectionPrompt.Delete", "DeleteCollectionPrompt.Delete_Tooltip");
  • trunk/gli/src/org/greenstone/gatherer/collection/ExportCollectionPrompt.java

    r6149 r6318  
    4949import org.greenstone.gatherer.collection.BasicCollectionConfiguration;
    5050import org.greenstone.gatherer.collection.Collection;
     51import org.greenstone.gatherer.gui.GLIButton;
    5152import org.greenstone.gatherer.gui.ModalDialog;
    5253import org.greenstone.gatherer.gui.SimpleMenuBar;
     
    114115    public ExportCollectionPrompt() {
    115116    super(Gatherer.g_man, true);
    116     cancel_button = new JButton();
     117    cancel_button = new GLIButton();
    117118    cancel_button.setMnemonic(KeyEvent.VK_C);
    118119    Dictionary.setBoth(cancel_button, "General.Close", "General.Close_Tooltip");
     
    138139    list_label = new JLabel();
    139140    Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List");
    140     ok_button = new JButton();
     141    ok_button = new GLIButton();
    141142    ok_button.setMnemonic(KeyEvent.VK_D);
    142143    Dictionary.setBoth(ok_button, "ExportCollectionPrompt.Export", "ExportCollectionPrompt.Export_Tooltip");
     
    545546
    546547        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);
    548550        close_button.addActionListener(new CloseButtonListener());
    549551
  • trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionBox.java

    r5581 r6318  
    4242import org.greenstone.gatherer.Dictionary;
    4343import org.greenstone.gatherer.Gatherer;
     44import org.greenstone.gatherer.gui.GLIButton;
    4445
    4546/** Provides a prompt allowing the user some choice in whether a collection saves. */
     
    115116    content_pane.add(button_pane);
    116117    // 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();
    118119    yes.addActionListener(this);
    119120    KeyListenerImpl key_listener = new KeyListenerImpl();
     
    122123    Dictionary.setBoth(yes, "General.Yes", "General.Yes_Tooltip");
    123124    button_pane.add(yes);
    124     no = new JButton();
     125    no = new GLIButton();
    125126    no.addActionListener(this);
    126127    no.addKeyListener(key_listener);
     
    128129    Dictionary.setBoth(no, "General.No", "General.No_Tooltip");
    129130    button_pane.add(no);
    130     cancel = new JButton();
     131    cancel = new GLIButton();
    131132    cancel.addActionListener(this);
    132133    cancel.addKeyListener(key_listener);
Note: See TracChangeset for help on using the changeset viewer.