Changeset 5873


Ignore:
Timestamp:
2003-11-18T15:29:00+13:00 (20 years ago)
Author:
jmt12
Message:

Restored import and build panes to use grid layout - but without the two column problem of before

File:
1 edited

Legend:

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

    r5726 r5873  
    8585    static private int IMPORT = 1;
    8686    static private Dimension LABEL_SIZE = new Dimension(180, 25);
    87     static private Dimension LOG_SIZE = new Dimension(610, 360);
    88     /** The minimum size of a options pane, to prevent refresh problems around the bottom of shorter panes. */
    89     static private Dimension PANE_SIZE = new Dimension(610, 350);
    9087    static private Dimension ROW_SIZE = new Dimension(610, 25);
    9188    static private Dimension SPINNER_SIZE = new Dimension(100, 25);
     
    111108    pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    112109    int build_argument_count = build_options.getBuildArgumentCount();
    113     pane.setPreferredSize(new Dimension(ROW_SIZE.width, ROW_SIZE.height * build_argument_count));
     110    pane.setLayout(new GridLayout(build_argument_count, 1, 5, 5));
    114111    for(int i = 0; i < build_argument_count; i++) {
    115112        // Retrieve the argument so we know how to format the control.
     
    131128    pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    132129    int import_argument_count = build_options.getImportArgumentCount();
    133     pane.setPreferredSize(new Dimension(ROW_SIZE.width, ROW_SIZE.height * import_argument_count));
     130    pane.setLayout(new GridLayout(import_argument_count, 1, 5, 5));
    134131    for(int i = 0; i < import_argument_count; i++) {
    135132        // Retrieve the argument so we know how to format the control.
Note: See TracChangeset for help on using the changeset viewer.