Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4954394

AbstractButton.doClick should specify that actionListener caller thread isnt EQT

XMLWordPrintable

      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

            svioletsunw Scott Violet (Inactive)
            hsinghsunw Hemant Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: