|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
jas.util.JASTextField
public class JASTextField
Works just like a JTextField, except that the default button for this component's root pane will is clicked when the user clicks on Enter in this field. In a normal JTextField, clicking on Enter produces an ActionEvent, but it does not do a click on the default button as most users would expect.
JRootPane,
JTextField,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JASTextField()
Just like calling JTextField()
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field. |
|
JASTextField(Document doc,
String text,
int columns)
Just like calling JTextField(Document, String, int)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field. |
|
JASTextField(int columns)
Just like calling JTextField(int)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field. |
|
JASTextField(String text)
Just like calling JTextField(String)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field. |
|
JASTextField(String text,
int columns)
Just like calling JTextField(String, int)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field. |
|
| Method Summary | |
|---|---|
protected void |
fireActionPerformed()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JASTextField()
JTextField()
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field.
public JASTextField(String text)
JTextField(String)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field.
public JASTextField(int columns)
JTextField(int)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field.
public JASTextField(String text,
int columns)
JTextField(String, int)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field.
public JASTextField(Document doc,
String text,
int columns)
JTextField(Document, String, int)
except that the default button for this component's root pane will
be clicked when Enter is clicked in the field.
| Method Detail |
|---|
protected void fireActionPerformed()
fireActionPerformed in class JTextField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||