Request for review: 7155298 : Editable TextArea blocks GUI application from exit (original) (raw)
Oleg Sukhodolsky son.two at gmail.com
Wed Mar 21 06:14:24 PDT 2012
- Previous message: Request for review: 7155298 : Editable TextArea blocks GUI application from exit
- Next message: Request for review: 7155298 : Editable TextArea blocks GUI application from exit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <zhouyx at linux.vnet.ibm.com> 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/viewbug.do?bugid=7155298 -- Best Regards, Sean Chou
- Previous message: Request for review: 7155298 : Editable TextArea blocks GUI application from exit
- Next message: Request for review: 7155298 : Editable TextArea blocks GUI application from exit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]