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.
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.