0
로드되지 내가 CSS 파일이 있습니다CSS 클래스는 이미지 뷰의 자바 FX
.-fx-attribute-label {
-fx-min-width: 50;
-fx-font-weight: bold;
}
...
.img-view {
-fx-stroke-width: 2.0;
}
.img-view:hover {
-fx-stroke: #70c0e7;
}
.img-view:selected {
-fx-stroke: #26A0DA;
}
을 나는 이미지 뷰에 IMG 뷰 클래스를 추가하려고 : 나는 선택하면 가져가에 강조해야 할
pairStream.forEach(id -> {
final ImageView imgView = new ImageView(id.getValue());
imgView.getStyleClass().add("img-view");
facesView.getChildren().add(imgView); //facesView is Hbox which contains imageViews as children
...
});
을하지만, 작동하지 않습니다. -fx-attribute-label과 같은 다른 클래스가 작동하기 때문에 CSS 파일이로드 된 것을 알고 있습니다. img-view 클래스에서만 작동하지 않는 이유는 무엇입니까?
감사합니다. – xav9211