use of com.kyj.fx.voeditor.visual.component.config.skin.ButtonStyleViewComposite in project Gargoyle by callakrsos.
the class ButtonStylingExam method start.
/*
* (non-Javadoc)
*
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
BorderPane root = new ButtonStyleViewComposite();
Scene scene = new Scene(root);
// HBox hboxSample = new HBox(new Button("Button"));
// hboxSample.setAlignment(Pos.CENTER);
// root.setTop(hboxSample);
//
// TextArea textArea = new TextArea();
// root.setCenter(textArea);
// Button btnApply = new Button("Apply");
//
// root.setBottom(btnApply);
// btnApply.setOnAction(ev -> {
// String text = textArea.getText();
// scene.getStylesheets().clear();
// try {
// File createUserCustomSkin = SkinManager.getInstance().createUserCustomSkin(text, false);
// scene.getStylesheets().add(createUserCustomSkin.toURI().toURL().toExternalForm());
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
//
// });
primaryStage.setScene(scene);
primaryStage.show();
}
Aggregations