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

Scrollbar example from http://download.oracle.com/otndocs/products/javafx/2.1/samples/Ensemble/index.html#SAMPLES/Graphics/Display%20Shelf

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      Scrollbar example doesn't implemented propertly. Here is more information about it:

      https://forums.oracle.com/forums/thread.jspa?threadID=2418154&tstart=0

      (example code: http://download.oracle.com/otndocs/products/javafx/2.1/samples/Ensemble/index.html#SAMPLES/Graphics/Display%20Shelf)

      Changing this code:

       Class<DisplayShelfSample> clazz = DisplayShelfSample.class;
              ClassLoader cl = clazz.getClassLoader();
              Image[] images = new Image[14];
              for (int i = 0; i < 14; i++) {
                  images[i] = new Image(cl.getResource("smallimage"+(i+1)+".jpg").toExternalForm(),false);
              }

      to that:

       Class<DisplayShelfSample> clazz = DisplayShelfSample.class;
              ClassLoader cl = clazz.getClassLoader();
              Image[] images = new Image[2];
              for (int i = 0; i < 2; i++) {
                  images[i] = new Image(cl.getResource("smallimage"+(i+1)+".jpg").toExternalForm(),false);
              }

      is enough to get the strange behabiour.

        Attachments

          Activity

            People

            • Assignee:
              dmasada Debra Masada (Inactive)
              Reporter:
              dcirujanojfx Diego Cirujano (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: