How Remove or unregister KeyStroke from JTextField

I am using JTextField.And i want remove SpaceBar from JTextfied.I am making Hexadecimal JTextField.And providing space by auto generated not by user.Result will lool 12 23 56 23and don't want 12 23 3 56 3 56
[250 byte] By [hitesh_karela] at [2007-11-27 7:47:00]
# 1
you can implement your own Document (javax.swing.text.Document).actually you could see an example in JTextField API doc. it show how to make an uppercase text field.
j_shadinataa at 2007-7-12 19:28:02 > top of Java-index,Desktop,Core GUI APIs...
# 2

Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings[/url] for background information on why this solution works:

KeyStroke ignore = KeyStroke.getKeyStroke(' ');

textField.getInputMap().put(ignore, "none");

camickra at 2007-7-12 19:28:02 > top of Java-index,Desktop,Core GUI APIs...