Documentfilter on JFormattedTextField or something like it
It not a big problem setting a documentfilter on a JFormattedTextField, but if you have a formatter on the field its a lot harder.
I have a TextField with a RegexFormatter as a default formatter, the Regexformatter is a subclass of DefaultFormatter. DefaultFormatter has its own documentFilter Class, which i can not use
I could overwrite getDocumentFilter in my RegexFormatter and use my own filter, but then it doesn't work as planned anymore.
What im trying to archive i to block the numeric + (VK_ADD) to make it do something else.
I have tried with getInputMap.put... and i can put a abstractAction on it, but it isn't blocked, its still turn up on the screen. only getInputMap.put.. with a char works, but that will block the other + as well
hope someone can help