Java Reference
In-Depth Information
filePath = file.getAbsolutePath();
System.out.println(filePath);
currentIndex += 1;
imageFiles.add(currentIndex,
filePath);
}
filePath = filePrefix + filePath;
// set new image as the image to show.
Image imageimage = new Image(filePath);
currentImageView.setImage(imageimage);
}
event.setDropCompleted(success);
event.consume();
});
// create slide controls
Group buttonGroup = new Group();
// rounded rect
Rectangle buttonArea = new Rectangle();
buttonArea.setArcWidth(15);
buttonArea.setArcHeight(20);
buttonArea.setFill(new Color(0, 0, 0, .55));
buttonArea.setX(0);
buttonArea.setY(0);
buttonArea.setWidth(60);
buttonArea.setHeight(30);
buttonArea.setStroke(Color.rgb(255, 255, 255,
.70));
buttonGroup.getChildren().add(buttonArea);
// left control
Arc leftButton = new Arc();
leftButton.setType(ArcType.ROUND);
leftButton.setCenterX(12);
leftButton.setCenterY(16);
Search WWH ::




Custom Search