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

paint methods being called for a disabled spinner under Synth L&F.

XMLWordPrintable

    • Fix Understood
    • generic
    • generic

      paint methods being called for a disabled spinner under Synth L&F.
      I have a frame set with a disabled spinner and a disbled formattedtextfield.
      The L&F is set to Synth thru a synth.xml file which has some paint method calls associated for a formattedtextfield and a spinner. The methods are defined in the MyPainter class. Clicking on the formattedtextfield of the disabled JSpinner is invoking these methods where sa they are not invoked whne cliking on the disabled textfield.
      Steps to reproduce:
      1.Unzip the attachment.
      2.Execute the class SynthSpinnerTest.
      3.Clik on the disabled textfield and observe that there are no SOPs from the paint methods on the command line. This is the expected behaviour.
      4.Clik on either sides on the number 0 in the disabled spinner and observe that there are SOPs from the paint methods on the command line. This is the actual behaviour.
      This behaviour is happening since build b32c.

            peterz Peter Zhelezniakov
            smandalisunw Srinivas Mandalika (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: