Set column widths in miglayout
This commit is contained in:
parent
6b5b951fe5
commit
e62cd4c6db
@ -113,7 +113,7 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
|
||||
|
||||
JTable table;
|
||||
|
||||
JPanel panel = new JPanel(new MigLayout("fill"));
|
||||
JPanel panel = new JPanel(new MigLayout("fill", "[120lp][70lp][]"));
|
||||
add(panel);
|
||||
|
||||
rkt = rocketPanel.getDocument().getRocket();
|
||||
@ -133,7 +133,7 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
|
||||
roll = new DoubleModel(rocketPanel, "CPRoll", UnitGroup.UNITS_ROLL);
|
||||
|
||||
//// Wind direction:
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.winddir")), "width 120lp!");
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.winddir")));
|
||||
panel.add(new UnitSelector(theta, true), "width 50lp!");
|
||||
BasicSlider slider = new BasicSlider(theta.getSliderModel(0, 2 * Math.PI));
|
||||
panel.add(slider, "growx, split 2");
|
||||
@ -164,17 +164,17 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
|
||||
panel.add(scrollPane, "gap paragraph, spany 4, w 300lp, grow, height :100lp:, wrap");
|
||||
|
||||
////Angle of attack:
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.angleofattack")), "width 120lp!");
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.angleofattack")));
|
||||
panel.add(new UnitSelector(aoa, true), "width 50lp!");
|
||||
panel.add(new BasicSlider(aoa.getSliderModel(0, Math.PI)), "growx, wrap");
|
||||
|
||||
//// Mach number:
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.machnumber")), "width 120lp!");
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.machnumber")));
|
||||
panel.add(new UnitSelector(mach, true), "width 50lp!");
|
||||
panel.add(new BasicSlider(mach.getSliderModel(0, 3)), "growx, wrap");
|
||||
|
||||
//// Roll rate:
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.rollrate")), "width 120lp!");
|
||||
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.rollrate")));
|
||||
panel.add(new UnitSelector(roll, true), "width 50lp!");
|
||||
panel.add(new BasicSlider(roll.getSliderModel(-20 * 2 * Math.PI, 20 * 2 * Math.PI)),
|
||||
"growx, wrap");
|
||||
|
Loading…
x
Reference in New Issue
Block a user