All Packages Class Hierarchy This Package Previous Next Index
Class vnr.awt.LabelledComponent
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----vnr.awt.LabelledComponent
- public class LabelledComponent
- extends JComponent
A combination control - a component and a text field
The label is on the left side and doesn't grow or shrink
- Author:
- dIon Gillard, 18th February, NZ, 1998
-
theLabel
-
-
LabelledComponent()
- Creates a LabelledComponent with label set to blank, and the component set to a JTextField
-
LabelledComponent(String, JComponent)
- Creates a LabelledComponent with the label's text set to the first parameter and the text fields
text set to the second
-
getLabelText()
- gets the text of the label that makes up part of this component
-
getTheComponent()
-
-
setLabelText(String)
- sets the text of the label
-
setTheComponent(JComponent)
-
theLabel
protected JLabel theLabel
LabelledComponent
public LabelledComponent(String labelString,
JComponent comp)
- Creates a LabelledComponent with the label's text set to the first parameter and the text fields
text set to the second
LabelledComponent
public LabelledComponent()
- Creates a LabelledComponent with label set to blank, and the component set to a JTextField
getLabelText
public String getLabelText()
- gets the text of the label that makes up part of this component
setLabelText
public void setLabelText(String s)
- sets the text of the label
getTheComponent
public JComponent getTheComponent()
setTheComponent
public void setTheComponent(JComponent $1)
All Packages Class Hierarchy This Package Previous Next Index