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

MouseClick on a disabled JSpinner shifts its editor's contents.

XMLWordPrintable

    • Fix Understood
    • generic
    • generic

      MouseClick on a disabled JSpinner shifts its editor's contents under windows,gtk,motif and synth Look and Feel.
      The attached test has a frame containing a disbled and an enabled JSpinner. The program takes a command line parameter of the LookAnd Feel and sets the L&F feel to that for the frame.
      On clicking inside the editorfield of the disabled Jspinner, by pointing the mouse on either sides of the number 0 alternately, there is a minor shift of the number happening.
      cliking on left side of 0 shifts the number to the right and
      cliking on right side of 0 shifts the number to the lwft
      Steps to reproduce:
      1)Unzip the attachment.
      2)Execute the test SynthSpinnertest1 with the command line parameter as Synth.
      java SynthSpinnerTest1 Synth
      3)Clik inside the editor field of the disabled Jspinner by pointing the mouse on either sides of the number 0 alternately. You can see a minor shift of the number happening.
      repeat this alternately oneither side of 0 to see this more carefully- it is more prominent when the clik is on the right hand side of 0.
      4)Execute the test by changing the command line parameter as follows and repeat step 3.
      java SynthSpinnerTest1 Motif
      java SynthSpinnerTest1 Windows
      java SynthSpinnerTest1 GTK
      For all above L&Fs this is the actual behaviour is observed.
      5) Run with the option Metal - java SynthSpinnerTest1 Metal
      Test Frame is set to Metal L&F. repeat step 3. There is shift in the number. This is the expeccted beahviour.
      This behaviour is reproducible right upto b32c.

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

              Created:
              Updated:
              Imported:
              Indexed: