Ignore:
Timestamp:
2004-12-14T15:29:54+13:00 (19 years ago)
Author:
mdewsnip
Message:

Fixed up some button sizes on the Search Indexes page and removed some dead constants.

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
2 edited

Legend:

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

    r8474 r8802  
    5050    extends JPanel
    5151    implements ActionListener {
    52 
    53     static final private Dimension MINIMUM_BUTTON_SIZE = new Dimension(100, 25);
    5452
    5553    private boolean simple = false;
     
    129127    stop_start_button.addActionListener(this);
    130128    stop_start_button.addActionListener(owner);
    131     stop_start_button.setMinimumSize(MINIMUM_BUTTON_SIZE);
     129    stop_start_button.setMinimumSize(Utility.MINIMUM_BUTTON_SIZE);
    132130    stop_start_button.setMnemonic(KeyEvent.VK_P);
    133131    stop_start_button.setEnabled(true);
     
    138136    log_button.addActionListener(this);
    139137    log_button.setEnabled(false);
    140     log_button.setMinimumSize(MINIMUM_BUTTON_SIZE);
     138    log_button.setMinimumSize(Utility.MINIMUM_BUTTON_SIZE);
    141139    log_button.setMnemonic(KeyEvent.VK_L);
    142140    Dictionary.registerBoth(log_button, "Mirroring.DownloadJob.Log", "Mirroring.DownloadJob.Log_Tooltip");
     
    145143    close_button.addActionListener(owner);
    146144    close_button.addActionListener(this);
    147     close_button.setMinimumSize(MINIMUM_BUTTON_SIZE);
     145    close_button.setMinimumSize(Utility.MINIMUM_BUTTON_SIZE);
    148146    close_button.setMnemonic(KeyEvent.VK_C);
    149147    close_button.setEnabled(true);
  • trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java

    r8783 r8802  
    7171public class EnrichPane
    7272    extends JPanel
    73     implements ActionListener, TreeSelectionListener {
    74 
    75     static private Dimension BUTTON_SIZE = new Dimension(190, 25);
     73    implements ActionListener, TreeSelectionListener
     74{
    7675    static private Dimension CONTROL_SIZE = new Dimension(560, 240);
    7776    static private Dimension MINIMUM_SIZE = new Dimension(100, 100);
     
    141140    add.setEnabled(false);
    142141    add.setMnemonic(KeyEvent.VK_A);
    143     add.setPreferredSize(BUTTON_SIZE);
     142    add.setPreferredSize(Utility.MINIMUM_BUTTON_SIZE);
    144143    Dictionary.registerBoth(add, "MetaEdit.Accumulate", "MetaEdit.Accumulate_Tooltip");
    145144
     
    148147    update.setEnabled(false);
    149148    update.setMnemonic(KeyEvent.VK_P);
    150     update.setPreferredSize(BUTTON_SIZE);
     149    update.setPreferredSize(Utility.MINIMUM_BUTTON_SIZE);
    151150    Dictionary.registerBoth(update, "MetaEdit.Overwrite", "MetaEdit.Overwrite_Tooltip");
    152151
     
    155154    remove.setEnabled(false);
    156155    remove.setMnemonic(KeyEvent.VK_R);
    157     remove.setPreferredSize(BUTTON_SIZE);
     156    remove.setPreferredSize(Utility.MINIMUM_BUTTON_SIZE);
    158157    Dictionary.registerBoth(remove, "MetaEdit.Remove", "MetaEdit.Remove_Tooltip");
    159158
Note: See TracChangeset for help on using the changeset viewer.