Ignore:
Timestamp:
2005-06-03T14:45:24+12:00 (19 years ago)
Author:
mdewsnip
Message:

Removed the Dimension objects from the Utility class, as part of tidying it up.

File:
1 edited

Legend:

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

    r8994 r10008  
    4545import org.greenstone.gatherer.collection.DownloadJob;
    4646import org.greenstone.gatherer.util.AppendLineOnlyFileDocument;
    47 import org.greenstone.gatherer.util.Utility;
     47
    4848
    4949public class DownloadProgressBar
    5050    extends JPanel
    5151    implements ActionListener {
     52
     53    static final private Dimension MINIMUM_BUTTON_SIZE = new Dimension(100, 25);
     54    static final private Dimension PROGRESS_BAR_SIZE = new Dimension(580,65);
    5255
    5356    private boolean simple = false;
     
    127130    stop_start_button.addActionListener(this);
    128131    stop_start_button.addActionListener(owner);
    129     stop_start_button.setMinimumSize(Utility.MINIMUM_BUTTON_SIZE);
     132    stop_start_button.setMinimumSize(MINIMUM_BUTTON_SIZE);
    130133    stop_start_button.setMnemonic(KeyEvent.VK_P);
    131134    stop_start_button.setEnabled(true);
     
    136139    log_button.addActionListener(this);
    137140    log_button.setEnabled(false);
    138     log_button.setMinimumSize(Utility.MINIMUM_BUTTON_SIZE);
     141    log_button.setMinimumSize(MINIMUM_BUTTON_SIZE);
    139142    log_button.setMnemonic(KeyEvent.VK_L);
    140143    Dictionary.registerBoth(log_button, "Mirroring.DownloadJob.Log", "Mirroring.DownloadJob.Log_Tooltip");
     
    143146    close_button.addActionListener(owner);
    144147    close_button.addActionListener(this);
    145     close_button.setMinimumSize(Utility.MINIMUM_BUTTON_SIZE);
     148    close_button.setMinimumSize(MINIMUM_BUTTON_SIZE);
    146149    close_button.setMnemonic(KeyEvent.VK_C);
    147150    close_button.setEnabled(true);
     
    238241
    239242    public Dimension getPreferredSize() {
    240     return Utility.PROGRESS_BAR_SIZE;
     243    return PROGRESS_BAR_SIZE;
    241244    }
    242245
Note: See TracChangeset for help on using the changeset viewer.