JPanel sub = materialPanel(new JPanel(new MigLayout()), Material.Type.BULK);
if (component instanceof EngineBlock) {
- DescriptionArea desc = new DescriptionArea(6,-1);
+ final DescriptionArea desc = new DescriptionArea(6);
desc.setText("<html>An <b>engine block</b> stops the motor from moving forwards " +
"in the motor mount tube.<br><br>In order to add a motor, create a " +
"<b>body tube</b> or <b>inner tube</b> and mark it as a motor mount in " +
"the <em>Motor</em> tab.");
- sub.add(desc, "growx");
+ sub.add(desc, "width 1px, growx, wrap");
}
panel.add(sub,"cell 4 0, gapleft paragraph, aligny 0%, spany");
((RingComponent) component).setRadialPosition(0.0);
}
});
- panel.add(button,"spanx, right");
+ panel.add(button,"spanx, right, wrap para");
+
+
+ DescriptionArea note = new DescriptionArea(2);
+ note.setText("Note: An inner tube will not affect the aerodynamics" +
+ " of the rocket even if it is located outside of the body tube.");
+ panel.add(note, "spanx, growx");
return panel;