Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTextField that dont react to keyboard events

800414Oct 2 2005 — edited Oct 6 2005
i created an an Autocomplate TextField
the text field can have 2 state.
ONE:
you can keep typing ,no meter if there are no results
in the textField

TWO:
you cant type if there are no result...

how can i tell a textfield to not react to the keyboard events..
for now i am deleting the last character..
witch not look very nice..
how can i do it without deleting the last character..
just tell the textfield to do nothing for this keyEvent..?
Thanks
Shay
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2005
Added on Oct 2 2005
4 comments
75 views