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

JSpinner.setEnabled(false) does not behave appropriately

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • client-libs
    • beta2
    • generic, x86
    • generic, windows_2000



      Name: yyT116575 Date: 06/15/2001


      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

      After setting an instance of JSpinner to disabled (with setEnabled(false), the
      spinner is still accessible and can be altered. This behavior is unlike that
      of textfields, buttons, checkboxes, comboboxes, buttons, radiobuttons, or
      JLabels where the component is uneditable/unselectable once disabled.

      This problem has been duplicated on Win2K and Solaris 8.
      (Review ID: 126640)
      ======================================================================

      Name: yyT116575 Date: 07/11/2001


      java version 1.4.0-beat
      java(TM 2 Runtime Environment Standard Edition (build 1.4.0-beta-b65)
      Java Hotspot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

      The JSpinner does not enable/disable when calling the setEnabled method. This is due to the JSpinner's container not passing the enable/disable to it's
      children.

      ex:
      new JSpinner().setEnabled(true);
      or
      new JSpinner().setEnabled(false);
      (Review ID: 127862)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: