java.awt
Class Label
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Label
- All Implemented Interfaces:
- ImageObserver
- public class Label
- extends Component
|
Constructor Summary |
Label()
|
Label(java.lang.String s)
|
Label(java.lang.String s,
int align)
|
| Methods inherited from class java.awt.Component |
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, contains, dispatchEvent, enableEvents, findComponentAt, getBackground, getBounds, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getLocationOnScreen, getMaximumSize, getParent, getPreferredSize, getSize, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isFocusTraversable, isValid, isVisible, paintAll, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, repaint, repaint, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setLocation, setSize, setSize, setVisible, update, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LEFT
public static final int LEFT
CENTER
public static final int CENTER
RIGHT
public static final int RIGHT
Label
public Label()
Label
public Label(java.lang.String s)
Label
public Label(java.lang.String s,
int align)
getText
public java.lang.String getText()
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
getMinimumSize in class Component
paint
public void paint(Graphics g)
- Overrides:
paint in class Component
setText
public void setText(java.lang.String s)