Merge pull request #2155 from SiboVG/issue-2152
[#2152] Fix table column width changing
This commit is contained in:
commit
8de28fd35e
@ -25,6 +25,8 @@ public class MotorMountConfigurationPanel extends JPanel {
|
||||
table.setShowVerticalLines(false);
|
||||
table.setRowSelectionAllowed(false);
|
||||
table.setColumnSelectionAllowed(false);
|
||||
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
|
||||
table.setAutoCreateColumnsFromModel(false);
|
||||
|
||||
TableColumnModel columnModel = table.getColumnModel();
|
||||
TableColumn col0 = columnModel.getColumn(0);
|
||||
|
@ -24,7 +24,7 @@ class MotorMountTableModel extends AbstractTableModel implements ComponentChange
|
||||
private final Rocket rocket;
|
||||
|
||||
/**
|
||||
* @param motorConfigurationPanel
|
||||
* @param rocket the rocket to select motor mounts from
|
||||
*/
|
||||
MotorMountTableModel( Rocket rocket) {
|
||||
this.rocket = rocket;
|
||||
|
@ -76,7 +76,7 @@ public class MotorConfigurationPanel extends FlightConfigurablePanel<MotorMount>
|
||||
BorderFactory.createEtchedBorder(),
|
||||
"<html><b>" + trans.get("lbl.motorMounts") + "</b></html>"));
|
||||
|
||||
MotorMountConfigurationPanel mountConfigPanel = new MotorMountConfigurationPanel(this, rocket);
|
||||
MotorMountConfigurationPanel mountConfigPanel = new MotorMountConfigurationPanel(subpanel, rocket);
|
||||
subpanel.add(mountConfigPanel, "grow, pushy");
|
||||
this.add(subpanel, "split, growy, pushy");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user