summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/gui/tabs/outcome/form/field/LongStringEditField.java
blob: b782c65b42650e32719ddd40a213d94179fecdd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
    }
}