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

Progress indicator never has bar painted on MacOS 10.5

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: fx1.3.1
    • Fix Version/s: fx1.3.1
    • Component/s: deploy
    • Labels:

      Description

      Progress bar is not painted on MacOS 10.5.

      This could be because of use JRE6 specific classes.

      I quickly tried standalone test that sends events to the progress component and i can see bar painted but it all white color.
      We probably need to provide simplified solutions for radial and linear gradiends as path of gradient util class.

      Perhaps we can borrow radial implementation from here:
         http://oreilly.com/catalog/java2d/chapter/ch04.html
         
      For multistep linear - perhaps we can detect 1.5 and use GradientPaint class and paint several areas separately?

      It is also important to understand how frequently we actually get notifications on Mac.

      ==========
      Sample test program:

      package com.javafx.progressbar;

      public class Test implements Runnable {
          static ProgressManager m;


          public static void main(String a[]) {
              m = new ProgressManager();
              Test tst = new Test();
              Thread t = new Thread(tst);
              tst.run();
          }

          public void run() {
              int p = 0;
              while (p < 100) {
                  int r = (int) (Math.random()*10);
                  p = p + r;
                  if (p > 100) p = 100;
                  m.progress(null, null, 1, 1, p);
                  try {
                      Thread.sleep(r*100);
                  } catch (Exception e) {}
              }
              m.validating(null, null, 1, 1, p);
                  try {
                      Thread.sleep(1000);
                  } catch (Exception e) {}
              System.exit(1);
          }
      }


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                igor Igor Nekrestyanov (Inactive)
                Reporter:
                igor Igor Nekrestyanov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: