public void initImages(String imageDir, double width, double height) { _elementImages = new Image[3]; _elementImages[LabelOptions.Focused.ordinal()] = new Image(imageDir + "Focused.png", width, height, true, false, true); _elementImages[LabelOptions.Unfocused.ordinal()] = new Image(imageDir + "Unfocused.png", width, height, true, false, true); _elementImages[LabelOptions.Clicked.ordinal()] = new Image(imageDir + "Clicked.png", width, height, true, false, true); setWidthAndHeight(width, height); }
public void initImage(String imagefile, double width, double height) { _elementImages = new Image[1]; _elementImages[LabelOptions.Focused.ordinal()] = new Image(imagefile, width, height, true, false, true); setWidthAndHeight(width, height); }