-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
5.0
-
generic
-
generic
Please specify exact URL location.
AbstractButton.doClick() methods Java doc should specify that actionListener
will be called in current thread and not in Event Queue Thread.
Its current documentation says that it does the same thing as user has
pressed and release the button, This gives user picture that actionPerformed
will be called in Event Queue thread like it happens when user clicks on
button. While actually when we call doClick than it calls actionPerformed associated with AbstractButton in the thread in which doClick is called.
Say if call doClick from thread "main" than actionPerformed will be called
by "main" thread.
Attached test case TestButton.java shows this behaviour of AbstractButton.doClick
###@###.### 2003-11-19
--------------------------------------
URL:
http://javaweb.sfbay/~swing/docs/api/javax/swing/AbstractButton.html
On this page following are the two methods which miss the above specified
documentation.
- doClick()
- doClick(int pressTime)
This bug exists in previous releases of jdk api doc also.
###@###.### 2003-11-19
AbstractButton.doClick() methods Java doc should specify that actionListener
will be called in current thread and not in Event Queue Thread.
Its current documentation says that it does the same thing as user has
pressed and release the button, This gives user picture that actionPerformed
will be called in Event Queue thread like it happens when user clicks on
button. While actually when we call doClick than it calls actionPerformed associated with AbstractButton in the thread in which doClick is called.
Say if call doClick from thread "main" than actionPerformed will be called
by "main" thread.
Attached test case TestButton.java shows this behaviour of AbstractButton.doClick
###@###.### 2003-11-19
--------------------------------------
URL:
http://javaweb.sfbay/~swing/docs/api/javax/swing/AbstractButton.html
On this page following are the two methods which miss the above specified
documentation.
- doClick()
- doClick(int pressTime)
This bug exists in previous releases of jdk api doc also.
###@###.### 2003-11-19