Changeset 1057


Ignore:
Timestamp:
05/02/16 10:52:09 (8 years ago)
Author:
davidb
Message:

Tweaks to make widget smaller in height

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/apollo/widgets/SampleRecorder.java

    r1053 r1057  
    9797        private boolean isTemporary = false;
    9898       
    99         private final static int BUTTON_HEIGHT = 50;
    100         private final static int LABEL_HEIGHT = 30;
    101         private final static int COUNTDOWN_SETTINGS_HEIGHT = 30;
     99        private final static int BUTTON_HEIGHT = 40;             // used to be 50
     100        private final static int LABEL_HEIGHT = 25;              // used to be 30
     101        private final static int COUNTDOWN_SETTINGS_HEIGHT = 30; 
    102102        private final static int HORO_SPACING = 2;
    103103        private final static int VERT_SPACING = 0;
     
    157157                new SpinnerNumberModel(0, 0, MAX_COUNTDOWN_TIME, 1);
    158158                countDownSpinner = new JSpinner(model);
    159                 countDownSpinner.setPreferredSize(new Dimension(50, COUNTDOWN_SETTINGS_HEIGHT));
     159                countDownSpinner.setPreferredSize(new Dimension(40, COUNTDOWN_SETTINGS_HEIGHT)); // x-dim previoulsy 50
    160160                countDownSpinner.setValue(countdown);
    161161
    162                 countDownSpinnerLabel = new JLabel("Count down:");
     162                countDownSpinnerLabel = new JLabel(" Count down:");
    163163                countDownSpinnerLabel.setPreferredSize(new Dimension(AnimatedSampleGraph.GRAPH_WIDTH - 50, COUNTDOWN_SETTINGS_HEIGHT));
    164164
Note: See TracChangeset for help on using the changeset viewer.