Class OneStringChooserPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
info.monitorenter.gui.chart.controls.OneStringChooserPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class OneStringChooserPanel extends JPanel
A panel that allows to input a String via a normal JTextField.

Version:
$Revision: 1.4 $
Author:
Achim Westermann
See Also:
  • Constructor Details

    • OneStringChooserPanel

      public OneStringChooserPanel(String label, String presetValue)
      Creates an instance with the given label and corresponding text field with the given initial value.

      Parameters:
      label - the label in front of the input text field.
      presetValue - the preset value for the text field.
  • Method Details

    • getValue

      public String getValue()
      Returns the current selected string value.

      Returns:
      the current selected string value.