Name: krT82822 Date: 11/18/98
In response to bug 4186905, I would like to
place this on the table as a serious issue.
It is still around in rc2.
The biggest issue here is that the parent
component, a JTextField in my case, receives
events and processes them anyway.
I have made an InputMask field for entering dates
and things, but since JTextFields goes about its
business on Windows without much regard for
anything else, my component is rendered useless
on Windows, while pretty handy on Solaris.
Here is some code that produces nothing when
keys are typed on Solaris (rightly) and is
ignored on Windows. This will not be
easy to code around.
JTextField field = new JTextField();
field.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {
e.consume();
}
public void keyTyped(KeyEvent e) {
e.consume();
}
public void keyReleased(KeyEvent e) {
e.consume();
}
});
(Review ID: 42931)
======================================================================