Search in sources :

Example 86 with BorderPane

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

the class FxControlsTreeViewExam method getTestNod.

Node getTestNod() {
    /* [시작] 분석하고자하는 UI구조 */
    BorderPane borderPane = new BorderPane();
    ScrollPane scrollPane2 = new ScrollPane();
    scrollPane2.setContent(new TextArea());
    borderPane.setTop(new HBox(new Button(), new Button(), new HTMLEditor()));
    borderPane.setCenter(new BorderPane(scrollPane2));
    /* [끝] 분석하고자하는 UI구조 */
    return borderPane;
}
Also used : BorderPane(javafx.scene.layout.BorderPane) HBox(javafx.scene.layout.HBox) TextArea(javafx.scene.control.TextArea) Button(javafx.scene.control.Button) ScrollPane(javafx.scene.control.ScrollPane) HTMLEditor(javafx.scene.web.HTMLEditor)

Example 87 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 88 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 89 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 90 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)

Aggregations

BorderPane (javafx.scene.layout.BorderPane)93 Scene (javafx.scene.Scene)56 Button (javafx.scene.control.Button)19 Label (javafx.scene.control.Label)16 FXMLLoader (javafx.fxml.FXMLLoader)14 Stage (javafx.stage.Stage)13 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 HashMap (java.util.HashMap)8 TableView (javafx.scene.control.TableView)8 HBox (javafx.scene.layout.HBox)8 Insets (javafx.geometry.Insets)7 TextField (javafx.scene.control.TextField)7 Map (java.util.Map)6 MenuItem (javafx.scene.control.MenuItem)6 TableColumn (javafx.scene.control.TableColumn)6 FXML (javafx.fxml.FXML)5