diff options
Diffstat (limited to 'source/com/c2kernel/gui/tabs/outcome/form/field/LongStringEditField.java')
| -rwxr-xr-x | source/com/c2kernel/gui/tabs/outcome/form/field/LongStringEditField.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/source/com/c2kernel/gui/tabs/outcome/form/field/LongStringEditField.java b/source/com/c2kernel/gui/tabs/outcome/form/field/LongStringEditField.java new file mode 100755 index 0000000..b782c65 --- /dev/null +++ b/source/com/c2kernel/gui/tabs/outcome/form/field/LongStringEditField.java @@ -0,0 +1,38 @@ +package com.c2kernel.gui.tabs.outcome.form.field;
+
+import java.awt.Component;
+
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+import javax.swing.text.JTextComponent;
+
+import com.c2kernel.utils.Language;
+
+
+/**************************************************************************
+ *
+ * $Revision$
+ * $Date$
+ *
+ * Copyright (C) 2003 CERN - European Organization for Nuclear Research
+ * All rights reserved.
+ **************************************************************************/
+public class LongStringEditField extends StringEditField {
+
+ JTextArea bigText;
+ JScrollPane bigScroller;
+ public LongStringEditField() {
+ super();
+ field.setToolTipText(Language.translate("This field can contain any string."));
+ }
+
+ public JTextComponent makeTextField() {
+ return new JTextArea();
+ }
+ public Component getControl() {
+ if (bigScroller == null) {
+ bigScroller = new JScrollPane(field);
+ }
+ return bigScroller;
+ }
+}
|
