summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/gui/tabs/outcome/form/field/LongStringEditField.java
blob: 140d7f2fe554bf4ac039c8630858c7a3c380511b (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
39
40
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."));
    }

    @Override
	public JTextComponent makeTextField() {
    	return new JTextArea();
    }
    @Override
	public Component getControl() {
    	if (bigScroller == null) {
    		bigScroller = new JScrollPane(field);
    	}
        return bigScroller;
    }
}