[fixes #926] Fix layout issues motor selection panel

This commit is contained in:
Sibo Van Gool 2022-01-28 01:53:12 +01:00
parent 7fdd0ed5c7
commit 6b6f0c8cb1
3 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ public abstract class MotorFilterPanel extends JPanel {
}
});
sub.add(new JScrollPane(manufacturerCheckList.getList()), "grow,wrap");
sub.add(new JScrollPane(manufacturerCheckList.getList()), "grow, pushy, wrap");
JButton clearMotors = new SelectColorButton(trans.get("TCMotorSelPan.btn.checkNone"));
clearMotors.addActionListener( new ActionListener() {

View File

@ -155,7 +155,7 @@ class MotorInformationPanel extends JPanel {
comment.setWrapStyleWord(true);
comment.setEditable(false);
JScrollPane scrollpane = new JScrollPane(comment);
this.add(scrollpane, "spanx, growx, wrap para");
this.add(scrollpane, "spanx, grow, pushy, wrap para");
}
// Thrust curve plot

View File

@ -290,7 +290,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
JScrollPane scrollpane = new JScrollPane();
scrollpane.setViewportView(table);
panel.add(scrollpane, "grow, width :500:, spanx, wrap");
panel.add(scrollpane, "grow, width :500:, spanx, push, wrap");
}
@ -354,7 +354,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
rightSide.add(trans.get("TCMotorSelPan.btn.filter"), motorFilterPanel);
rightSide.add(trans.get("TCMotorSelPan.btn.details"), motorInformationPanel);
this.add(rightSide);
this.add(rightSide, "growy");
// Update the panel data
updateData();