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

Checkbox.setState() does not notify listeners

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1
    • client-libs
    • x86, sparc
    • solaris_2.5.1, windows_95

      Name: mc57594 Date: 02/26/97

      Your sun.awt.windows.WCheckBoxPeer seems to have a problem:

      When you call the setState() function on the Checkbox, there
      should be an ItemEvent() created, to notify anyone who is
      watching the box. For example, if a text field should only
      be enabled if a checkbox is checked, and the checkbox is checked
      by setState() instead of a mouse click, the text field should
      still be enabled. The only other option is to go back to
      polling the CheckBox, or override setState().

      This is just my opinion of what SHOULD happen, but it seems
      clear that the delegation model is rendered much less useful
      if things remain as they are.

      ======================================================================

            duke J. Duke
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: