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

Variable Index

 o theLabel

Constructor Index

 o LabelledComponent()
Creates a LabelledComponent with label set to blank, and the component set to a JTextField
 o 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

Method Index

 o getLabelText()
gets the text of the label that makes up part of this component
 o getTheComponent()
 o setLabelText(String)
sets the text of the label
 o setTheComponent(JComponent)

Variables

 o theLabel
 protected JLabel theLabel

Constructors

 o 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

 o LabelledComponent
 public LabelledComponent()
Creates a LabelledComponent with label set to blank, and the component set to a JTextField

Methods

 o getLabelText
 public String getLabelText()
gets the text of the label that makes up part of this component

 o setLabelText
 public void setLabelText(String s)
sets the text of the label

 o getTheComponent
 public JComponent getTheComponent()
 o setTheComponent
 public void setTheComponent(JComponent $1)

All Packages  Class Hierarchy  This Package  Previous  Next  Index