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

api/javax_swing/interactive/JProgressBarTests.html#JProgressBar Fails with NIMBUS L&F.

XMLWordPrintable

    • generic
    • generic

      JProgressBarTest0012 testcase of JCK api/javax_swing/interactive/JProgressBarTests.html#JProgressBar test fails when run with NIMBUS L&F.

      This is not a regression since it fails starting from 6u10 fcs.

      This test verifies the behavior of the setBorderPainted(boolean) method.

      http://java.sun.com/javase/6/docs/api/javax/swing/JProgressBar.html#setBorderPainted(boolean) Says:
      public void setBorderPainted(boolean b)

          Sets the borderPainted property, which is true if the progress bar should paint its border. The default value for this property is true. Some look and feels might not implement painted borders; they will ignore this property.

          Parameters:
              b - true if the progress bar should paint its border; otherwise, false

      With NIMBUS L&F border is always painted.

      Note from from JCK developers ###@###.###:
      The JProgressBar test is correctly written, so this is not a test issue.
      To know whether or not this is a product issue, we'd need to know whether
      or not Nimbus implements painted borders. I suggest getting confirmation
      on this from the Nimbus developers.
      If Nimbus implements painted borders, this would appear to be a product
      issue, otherwise I don't think this is a product issue.
      (end of quote)

      From my point of view https://nimbus.dev.java.net/spec/index.html shows that JProgressBar should always have borders.

      So we need an evaluation is it a bug or not.

            Unassigned Unassigned
            ephilipp Evgeny Philippov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: