java.awt
Class TextField
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.TextComponent
|
+--java.awt.TextField
- public class TextField
- extends TextComponent
Limitations
- The caret blinking is currently disabled because of often system
crashes when running threads
- ActionEvents are not sent (but TextEvents)
Methods inherited from class java.awt.TextComponent |
addTextListener,
getCaretPosition,
getSelectedText,
getSelectionEnd,
getSelectionStart,
isEditable,
processTextEvent,
removeTextListener,
select,
selectAll,
setCaretPosition,
setEditable,
setSelectionEnd,
setSelectionStart,
setText |
Methods inherited from class java.awt.Component |
addKeyListener,
addMouseListener,
contains,
findComponentAt,
getFont,
getFontMetrics,
getGraphics,
getHeight,
getLocationOnScreen,
getParent,
getPreferredSize,
getSize,
getWidth,
getX,
getY,
invalidate,
isEnabled,
isVisible,
paintAll,
proxyRequestFocus,
repaint,
repaint,
requestFocus,
setBackground,
setBounds,
setEnabled,
setForeground,
setLocation,
setSize,
setSize,
setVisible,
update,
validate |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TextField
public TextField()
TextField
public TextField(int cols)
TextField
public TextField(java.lang.String s)
TextField
public TextField(java.lang.String text,
int cols)
echoCharIsSet
public boolean echoCharIsSet()
getEchoChar
public char getEchoChar()
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
getText
public java.lang.String getText()
- Overrides:
- getText in class TextComponent
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
processMouseEvent
public void processMouseEvent(MouseEvent me)
- Description copied from class: Component
- Does not work because of the type cast Problem!
All event sources call the specialized method
(e.g. processMouseEvent) directly
- Overrides:
- processMouseEvent in class Component
processKeyEvent
public void processKeyEvent(KeyEvent ke)
- Overrides:
- processKeyEvent in class Component
setEchoChar
public void setEchoChar(char c)