apps/toys/Hello/src/main/java/hello/dialog/dialogs/CommandLinksDialog.java
Print this page
@@ -26,13 +26,10 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import javafx.scene.control.skin.AccordionSkin;
-import com.sun.javafx.scene.control.skin.resources.ControlResources;
-import hello.HelloAccordion;
import javafx.beans.binding.DoubleBinding;
import javafx.collections.ListChangeListener;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
@@ -93,14 +90,12 @@
};
setDialogPane(dialogPane);
dialogPane.getStylesheets().add(getClass().getResource("commandlink.css").toExternalForm());
- setTitle(ControlResources.getString("Dialog.info.title"));
-
// FIXME extract to CSS
- dialogPane.setGraphic(new ImageView(new Image(AccordionSkin.class.getResource("modena/dialog-information.png").toExternalForm())));
+ dialogPane.setGraphic(new ImageView(new Image(getClass().getResource("/hello/dialog/dialog-information.png").toExternalForm())));
dialogPane.getButtonTypes().addAll(links);
dialogPane.contentProperty().addListener(o -> updateGrid());
updateGrid();
@@ -198,11 +193,12 @@
// Node view = commandLinkImage == null ?
// new ImageView(getClass().getResource("arrow-green-right.png").toExternalForm()) :
// new ImageView(commandLinkImage);
// Pane graphicContainer = new Pane(view);
// graphicContainer.getStyleClass().add("graphic-container");
- ImageView arrow = new ImageView(HelloAccordion.class.getResource("about_16.png").toExternalForm());
+
+ ImageView arrow = new ImageView(getClass().getResource("/hello/about_16.png").toExternalForm());
GridPane.setValignment(arrow, VPos.TOP);
GridPane.setMargin(arrow, new Insets(0,10,0,0));
GridPane grid = new GridPane();
grid.minWidthProperty().bind(titleLabel.prefWidthProperty());