D
David
Hi,
Im trying to create a custom text box. What I have done is inherited
from the JTextField class, and attached key listeners. However,
obviously swing is calling my listeners then processing the JTextFields
ones. Without using the formatter etc... I want to block key events
from being processed by JTextField. Any ideas how I can achieve this?
Ive tried looking at the source, but just cant seem to find any way to
do this apart from Key-Binding every key on the keyboard, which seems
insane. Im sure theres something easy im missing.
Thanks for the help
David
Im trying to create a custom text box. What I have done is inherited
from the JTextField class, and attached key listeners. However,
obviously swing is calling my listeners then processing the JTextFields
ones. Without using the formatter etc... I want to block key events
from being processed by JTextField. Any ideas how I can achieve this?
Ive tried looking at the source, but just cant seem to find any way to
do this apart from Key-Binding every key on the keyboard, which seems
insane. Im sure theres something easy im missing.
Thanks for the help
David