public class DoubleOption extends Objectimplements TwoComponentOption
| Constructor and Description |
|---|
DoubleOption(String
Create a new option for double values
|
| Modifier and Type | Method and Description |
|---|---|
JComponent |
getFirstComponent()
|
JTextField |
getInput()
|
JLabel |
getLabel()
|
JComponent |
getSecondComponent()
|
double |
getValue()
|
public DoubleOption(StringlabelText, double value)
labelText - the text for the label
value - the initial value in the input field.
public JLabelgetLabel()
public JTextFieldgetInput()
public JComponentgetFirstComponent()
getFirstComponent in interface
TwoComponentOption
public JComponentgetSecondComponent()
getSecondComponent in interface
TwoComponentOption
public double getValue()