charva.awt.util
Class CapsTextField
public class CapsTextField
The CapsTextField is a subclass of JTextField that translates
keystrokes to uppercase before echoing them.
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT, _alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible |
CapsTextField(String text_)- Use this constructor when you want to initialize the value.
|
CapsTextField(String text_, int length_)- Use this constructor when you want to set both the initial value and the
length.
|
CapsTextField(int length_)- Use this constructor when you want to leave the text field empty
but set its length.
|
void | processKeyEvent(KeyEvent ke_)- Convert keystrokes to uppercase before calling the JTextField's
processKeyEvent() method.
|
addActionListener, debug, draw, getActionCommand, getColumns, getHeight, getSize, getWidth, isEditable, minimumSize, postActionEvent, processEvent, processKeyEvent, processMouseEvent, requestFocus, setActionCommand, setBounds, setBounds, setBounds, setColumns, setEditable, setFont, setText, toString |
addFocusListener, addKeyListener, contains, contains, debug, draw, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getHeight, getLocation, getLocationOnScreen, getName, getParent, getSize, getWidth, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isTotallyObscured, isValid, isVisible, minimumSize, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestFocus, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor |
CapsTextField
public CapsTextField(String text_)
Use this constructor when you want to initialize the value.
CapsTextField
public CapsTextField(String text_,
int length_) Use this constructor when you want to set both the initial value and the
length.
CapsTextField
public CapsTextField(int length_)
Use this constructor when you want to leave the text field empty
but set its length.
processKeyEvent
public void processKeyEvent(KeyEvent ke_)
Convert keystrokes to uppercase before calling the JTextField's
processKeyEvent() method.
- processKeyEvent in interface JTextField