diff --git a/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountConfigurationPanel.java b/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountConfigurationPanel.java index 26bf33854..322794979 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountConfigurationPanel.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountConfigurationPanel.java @@ -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); diff --git a/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountTableModel.java b/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountTableModel.java index 3c9d7c69f..42fcfc7c8 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountTableModel.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/flightconfiguration/MotorMountTableModel.java @@ -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; diff --git a/swing/src/net/sf/openrocket/gui/main/flightconfigpanel/MotorConfigurationPanel.java b/swing/src/net/sf/openrocket/gui/main/flightconfigpanel/MotorConfigurationPanel.java index fa6480665..8f87a56f2 100644 --- a/swing/src/net/sf/openrocket/gui/main/flightconfigpanel/MotorConfigurationPanel.java +++ b/swing/src/net/sf/openrocket/gui/main/flightconfigpanel/MotorConfigurationPanel.java @@ -76,7 +76,7 @@ public class MotorConfigurationPanel extends FlightConfigurablePanel BorderFactory.createEtchedBorder(), "" + trans.get("lbl.motorMounts") + "")); - MotorMountConfigurationPanel mountConfigPanel = new MotorMountConfigurationPanel(this, rocket); + MotorMountConfigurationPanel mountConfigPanel = new MotorMountConfigurationPanel(subpanel, rocket); subpanel.add(mountConfigPanel, "grow, pushy"); this.add(subpanel, "split, growy, pushy"); }