Class TwoStringsChooserPanel

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

public class TwoStringsChooserPanel extends JPanel
A panel that allows to input two Strings via normal JTextField.

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

    • TwoStringsChooserPanel

      public TwoStringsChooserPanel(String label1, String presetValue1, String label2, String presetValue2)
      Creates an instance with the given labels and corresponding text fields with the given initial values.

      Parameters:
      label1 - 1 the label in front of the first input text field.
      presetValue1 - the preset value for the first text field.
      label2 - 2 the label in front of the second input text field.
      presetValue2 - the preset value for the second text field.
  • Method Details

    • getValue1

      public String getValue1()
      Returns the current selected string value 1.

      Returns:
      the current selected string value 1.
    • getValue2

      public String getValue2()
      Returns the current selected string value 2.

      Returns:
      the current selected string value 2.