Hi Sean, as far as I understand the caret and the timer both come from Swing, thus I wonder why calling removeNotify() on JPasswotrdField/JTextArea doesn't stop the timer? What does Swing expect? It might be some bug in Swing (I hope it is not, but it is better to verify ;)
As for changes I'd suggest to move this additional call (if we decide that this is the right way to fix the problem) into AWTTextArea/AWTTextField.removeNotify() this will help in case we decide to call it in some other place. Regards, Oleg. On Wed, Mar 21, 2012 at 11:55 AM, Sean Chou <[email protected]> wrote: > Hi all, > > It is found that when TextArea or TextField is setEditable(true), the > application will not exit after the application frame disposes. > The reason is the visible caret contains a timer which controls its flashing > . This timer must be stopped when disposing. > > Link to webrev: http://cr.openjdk.java.net/~zhouyx/7155298/webrev.00/ > Link to bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7155298 > > -- > Best Regards, > Sean Chou >
