X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fcomponents%2FDescriptionArea.java;h=1e37bb6f2a7c8f961a1f1014838411fa3df6eff9;hb=8320c04afa30e2aa0150adc870d02abeedb01066;hp=616b3adcdc91fa41954ba8dd0794780f74d1202e;hpb=6460090e9ec07b12234369583032d02d7c5ed3b1;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/gui/components/DescriptionArea.java b/src/net/sf/openrocket/gui/components/DescriptionArea.java index 616b3adc..1e37bb6f 100644 --- a/src/net/sf/openrocket/gui/components/DescriptionArea.java +++ b/src/net/sf/openrocket/gui/components/DescriptionArea.java @@ -16,14 +16,33 @@ public class DescriptionArea extends JScrollPane { private final JEditorPane editorPane; + /** + * Construct a description area with the specified number of rows, default description font size, + * being opaque. + * + * @param rows the number of rows + */ public DescriptionArea(int rows) { this("", rows, -1); } + /** + * Construct a description area with the specified number of rows and size, being opaque. + * + * @param rows the number of rows. + * @param size the font size difference compared to the default font size. + */ public DescriptionArea(int rows, float size) { this("", rows, size); } + /** + * Construct an opaque description area with the specified number of rows, size and text, being opaque. + * + * @param text the initial text. + * @param rows the number of rows. + * @param size the font size difference compared to the default font size. + */ public DescriptionArea(String text, int rows, float size) { this(text, rows, size, true); }