public interface TextFieldPeer extends TextComponentPeer
TextField
.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
Modifier and Type | Method and Description |
---|---|
Dimension |
getMinimumSize(int columns)
Returns the minimum size of the text field with the specified number
of columns.
|
Dimension |
getPreferredSize(int columns)
Returns the preferred size of the text field with the specified number
of columns.
|
void |
setEchoChar(char echoChar)
Sets the echo character.
|
getCaretPosition, getInputMethodRequests, getSelectionEnd, getSelectionStart, getText, select, setCaretPosition, setEditable, setText
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
void setEchoChar(char echoChar)
echoChar
- the echo character to setTextField.getEchoChar()
Dimension getPreferredSize(int columns)
columns
- the number of columnsTextField.getPreferredSize(int)
Dimension getMinimumSize(int columns)
columns
- the number of columnsTextField.getMinimumSize(int)
Dracula Javadoc Sample, Made with Allan Im.