Also use border on single-combo material panels
This commit is contained in:
parent
23461c4cb2
commit
305ae65030
@ -32,10 +32,8 @@ public class MaterialPanel extends JPanel {
|
|||||||
public MaterialPanel(RocketComponent component, OpenRocketDocument document,
|
public MaterialPanel(RocketComponent component, OpenRocketDocument document,
|
||||||
Material.Type type, String materialString, String finishString,
|
Material.Type type, String materialString, String finishString,
|
||||||
String partName, List<Component> order) {
|
String partName, List<Component> order) {
|
||||||
super(new MigLayout(component instanceof ExternalComponent ? "" : "ins 0"));
|
super(new MigLayout());
|
||||||
if (component instanceof ExternalComponent) {
|
this.setBorder(BorderFactory.createTitledBorder(trans.get("MaterialPanel.title.Material")));
|
||||||
this.setBorder(BorderFactory.createTitledBorder(trans.get("MaterialPanel.title.Material")));
|
|
||||||
}
|
|
||||||
|
|
||||||
JLabel label = new JLabel(materialString);
|
JLabel label = new JLabel(materialString);
|
||||||
//// The component material affects the weight of the component.
|
//// The component material affects the weight of the component.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user