Search in sources :

Example 76 with BorderPane

use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.

the class DialogExam method start.

/*
	 * (non-Javadoc)
	 * 
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
@Override
public void start(Stage primaryStage) throws Exception {
    String sql = "select * from tbm_sm_user where user_id = :userId";
    Button center = new Button("클릭");
    center.setOnMouseClicked(event -> {
        VariableMappingView variableMappingView = new VariableMappingView();
        variableMappingView.extractVariableFromSql(sql);
        variableMappingView.showAndWait(item -> {
            System.out.println(item);
        });
    });
    primaryStage.setScene(new Scene(new BorderPane(center)));
    primaryStage.show();
}
Also used : BorderPane(javafx.scene.layout.BorderPane) Button(javafx.scene.control.Button) VariableMappingView(com.kyj.fx.voeditor.visual.component.popup.VariableMappingView) Scene(javafx.scene.Scene)

Example 77 with BorderPane

use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.

the class SpinnerDemo method start.

@Override
public void start(final Stage stage) throws Exception {
    BorderPane pane = new BorderPane(new Label("Hello world"));
    Button value = new Button("Re");
    pane.setStyle("-fx-background-color:forestgreen");
    pane.setTop(value);
    final Scene scene = new Scene(pane, 1200, 800, Color.FORESTGREEN);
    //		scene.getStylesheets().add(SpinnerDemo.class.getResource("/css/jfoenix-components.css").toExternalForm());
    stage.setScene(scene);
    stage.setTitle("JFX Spinner Demo");
    stage.show();
    value.setOnAction(ev -> {
        extracted((Stage) value.getScene().getWindow());
    });
    //		extracted(stage);
    System.out.println("ss");
}
Also used : BorderPane(javafx.scene.layout.BorderPane) Button(javafx.scene.control.Button) Label(javafx.scene.control.Label) Scene(javafx.scene.Scene)

Example 78 with BorderPane

use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.

the class TableViewWithVisibleRowCountExam method start.

/* (non-Javadoc)
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
@Override
public void start(Stage primaryStage) throws Exception {
    TableViewWithVisibleRowCount<Object> center = new TableViewWithVisibleRowCount<>();
    TableColumn<Object, Object> e = new TableColumn<>();
    e.setCellValueFactory(new PropertyValueFactory<>("name"));
    center.getColumns().add(e);
    center.getItems().add(new Person("ssss"));
    center.getItems().add(new Person("ssss"));
    center.getItems().add(new Person("ssss"));
    center.getItems().add(new Person("ssss"));
    center.getItems().add(new Person("ssss"));
    center.getItems().add(new Person("ssss"));
    primaryStage.setScene(new Scene(new BorderPane(center), 300, 400));
    primaryStage.show();
    Platform.runLater(() -> {
        System.out.println(center.getVisibleRowCount());
    });
}
Also used : BorderPane(javafx.scene.layout.BorderPane) Scene(javafx.scene.Scene) TableColumn(javafx.scene.control.TableColumn)

Example 79 with BorderPane

use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.

the class AgendaExam method start.

/* (non-Javadoc)
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
@Override
public void start(Stage primaryStage) throws Exception {
    Agenda agenda = new Agenda() {

        @Override
        public Skin<?> createDefaultSkin() {
            return new AgendaDaysFromDisplayedSkin(this);
        }
    };
    // setup appointment groups
    final Map<String, Agenda.AppointmentGroup> lAppointmentGroupMap = new TreeMap<String, Agenda.AppointmentGroup>();
    for (Agenda.AppointmentGroup lAppointmentGroup : agenda.appointmentGroups()) {
        lAppointmentGroupMap.put(lAppointmentGroup.getDescription(), lAppointmentGroup);
    }
    // accept new appointments
    agenda.newAppointmentCallbackProperty().set(new Callback<Agenda.LocalDateTimeRange, Agenda.Appointment>() {

        @Override
        public Agenda.Appointment call(LocalDateTimeRange dateTimeRange) {
            return new Agenda.AppointmentImplLocal().withStartLocalDateTime(dateTimeRange.getStartLocalDateTime()).withEndLocalDateTime(dateTimeRange.getEndLocalDateTime()).withSummary("new").withDescription("new").withAppointmentGroup(lAppointmentGroupMap.get("group01"));
        }
    });
    BorderPane root = new BorderPane(agenda);
    root.getStylesheets().add(AgendaSkinSwitcher.class.getResource("/jfxtras/internal/scene/control/skin/agenda/" + AgendaSkinSwitcher.class.getSimpleName() + ".css").toExternalForm());
    primaryStage.setScene(new Scene(root));
    primaryStage.show();
}
Also used : BorderPane(javafx.scene.layout.BorderPane) AgendaDaysFromDisplayedSkin(jfxtras.internal.scene.control.skin.agenda.AgendaDaysFromDisplayedSkin) Agenda(jfxtras.scene.control.agenda.Agenda) TreeMap(java.util.TreeMap) Scene(javafx.scene.Scene) AgendaSkinSwitcher(jfxtras.scene.control.agenda.AgendaSkinSwitcher) LocalDateTimeRange(jfxtras.scene.control.agenda.Agenda.LocalDateTimeRange)

Example 80 with BorderPane

use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.

the class AgendaSample1 method start.

/* (non-Javadoc)
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
@Override
public void start(Stage primaryStage) throws Exception {
    BorderPane root = new BorderPane(agenda);
    root.setTop(this.agendaSkinSwitcher);
    primaryStage.setScene(new Scene(root));
    primaryStage.show();
}
Also used : BorderPane(javafx.scene.layout.BorderPane) Scene(javafx.scene.Scene)

Aggregations

BorderPane (javafx.scene.layout.BorderPane)95 Scene (javafx.scene.Scene)58 Button (javafx.scene.control.Button)19 Label (javafx.scene.control.Label)17 FXMLLoader (javafx.fxml.FXMLLoader)14 Stage (javafx.stage.Stage)14 StackPane (javafx.scene.layout.StackPane)12 IOException (java.io.IOException)11 Parameter (aima.gui.fx.framework.Parameter)10 SimulationPaneBuilder (aima.gui.fx.framework.SimulationPaneBuilder)10 File (java.io.File)10 HBox (javafx.scene.layout.HBox)9 HashMap (java.util.HashMap)8 Insets (javafx.geometry.Insets)8 TextField (javafx.scene.control.TextField)8 Map (java.util.Map)6 MenuItem (javafx.scene.control.MenuItem)6 TableColumn (javafx.scene.control.TableColumn)6 TableView (javafx.scene.control.TableView)6 List (java.util.List)5