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; } }