projects
/
debian
/
openrocket
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates for 0.9.4
[debian/openrocket]
/
src
/
net
/
sf
/
openrocket
/
gui
/
components
/
DescriptionArea.java
diff --git
a/src/net/sf/openrocket/gui/components/DescriptionArea.java
b/src/net/sf/openrocket/gui/components/DescriptionArea.java
index ac26ae837d7c01737c9e7c853d0fd8de1e84805d..d3d568b2dac9587e7613473f980926a2275ac26f 100644
(file)
--- a/
src/net/sf/openrocket/gui/components/DescriptionArea.java
+++ b/
src/net/sf/openrocket/gui/components/DescriptionArea.java
@@
-13,11
+13,15
@@
public class DescriptionArea extends JScrollPane {
private final JEditorPane editorPane;
private final JEditorPane editorPane;
+
public DescriptionArea(int rows) {
public DescriptionArea(int rows) {
- this(rows, -1);
+ this(
"",
rows, -1);
}
}
-
public DescriptionArea(int rows, float size) {
public DescriptionArea(int rows, float size) {
+ this("", rows, size);
+ }
+
+ public DescriptionArea(String text, int rows, float size) {
super(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
super(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
@@
-41,6
+45,7
@@
public class DescriptionArea extends JScrollPane {
this.setPreferredSize(dim);
this.setViewportView(editorPane);
this.setPreferredSize(dim);
this.setViewportView(editorPane);
+ this.setText(text);
}
public void setText(String txt) {
}
public void setText(String txt) {