Package javafx.scene.layout

Examples of javafx.scene.layout.FlowPane


    @Override
    public void start(Stage primaryStage) throws Exception {
      JuFxUtils.fxInitialized = true;
     
      if (pane == null) {
        pane = new FlowPane();
      }
      for (Node node : nodes) {
        pane.getChildren().add(node);
      }
     
View Full Code Here


    return paneInfo.getPane();
  }
 
  @Test
  public void multiplePanes() {
    final Pane pane = new FlowPane();
    pane.setPrefSize(100, 100);
    final Button btnRunTask = new Button("Run Task");
   
    JuFxUtils.startApplication()
      .title("TaskExecutor")
      .pane(pane)
      .start(new ApplicationInitializer() {
        @Override
        public void init(final Stage primaryStage) {
          btnRunTask.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent ev) {
              Pane pane = createExecutorPane(Long.toString(System.currentTimeMillis()));
              Stage dialog = new Stage();
              dialog.initOwner(primaryStage);
              //dialog.initModality(Modality.);
              Scene scene = new Scene(pane);
              dialog.setScene(scene);
              dialog.show();
            }
          });
          pane.getChildren().add(btnRunTask);
        }
      });
  }
View Full Code Here

public class NsIconDemo extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        FlowPane pane = new FlowPane();
        for (NsImageIcon nsImageIcon : NsImageIcon.values()) {
            pane.getChildren().add(
                    new ImageView(NsImageIconLoader.load(nsImageIcon)));
        }

        Scene myScene = new Scene(pane);
        primaryStage.setScene(myScene);
View Full Code Here

  public void start(Stage stage) throws Exception {
    stage.setTitle("Test des dialogues");
   
    Insets insets = new Insets(5, 5, 5, 5);
   
    FlowPane flow = new FlowPane(Orientation.VERTICAL);
    flow.setAlignment(Pos.CENTER);
   
    _messageTest = new Button("Message");
    _messageTest.setOnAction(this);
    FlowPane.setMargin(_messageTest, insets);
    flow.getChildren().add(_messageTest);
   
    _inputTest = new Button("Input");
    _inputTest.setOnAction(this);
    FlowPane.setMargin(_inputTest, insets);
    flow.getChildren().add(_inputTest);
   
    _askTest = new Button("Ask");
    _askTest.setOnAction(this);
    FlowPane.setMargin(_askTest, insets);
    flow.getChildren().add(_askTest);
   
    Scene scene = new Scene(flow);
    stage.setScene(scene);
    stage.show();
  }
View Full Code Here

    Label _questionLabel = new Label();
    _questionLabel.setText(question);
    border.setCenter(_questionLabel);
    BorderPane.setMargin(_questionLabel, insets);
   
    FlowPane flow = new FlowPane();
    flow.setAlignment(Pos.CENTER);
   
    _yesButton = new Button("Oui");
    _yesButton.setOnAction(this);
    FlowPane.setMargin(_yesButton, insets);
    flow.getChildren().add(_yesButton);
   
    _noButton = new Button("Non");
    _noButton.setOnAction(this);
    FlowPane.setMargin(_noButton, insets);
    flow.getChildren().add(_noButton);
       
    border.setBottom(flow);
   
    Scene scene = new Scene(border);
    setScene(scene);
View Full Code Here

    initStyle(StageStyle.UTILITY);
    initModality(Modality.APPLICATION_MODAL);

    BorderPane borderPane = new BorderPane();

    FlowPane gamePane = new FlowPane(Orientation.VERTICAL);
   
    Label gameLabel = new Label("Liste des parties :");
   
    _gameListView = new ListView();
    _gameListView.getSelectionModel().selectedItemProperty()
        .addListener(new ChangeListener<String>() {
          public void changed(ObservableValue<? extends String> ov,
              String old_val, String new_val) {
            _controller.execute("roomDisconnect",
                new Object[] { _user });
            _action = "join";
            _game = new_val.split(" ")[0];
            _adresse = new_val.split(" ")[1];
            refreshTimeLine.stop();
            close();
          }
        });

    FlowPane playerPane = new FlowPane(Orientation.VERTICAL);
   
    Label playerLabel = new Label("Liste des joueurs connect�s");
    _playerListView = new ListView();

    gamePane.getChildren().addAll(gameLabel, _gameListView);
    borderPane.setCenter(gamePane);
   
    playerPane.getChildren().addAll(playerLabel, _playerListView);
   
    borderPane.setRight(playerPane);

    GridPane buttonPane = new GridPane();
    buttonPane.setAlignment(Pos.CENTER);
View Full Code Here

    GridPane.setMargin(_confirmPasswordTextField, insets);
   
    BorderPane.setAlignment(gridPane, Pos.CENTER);
    borderPane.setCenter(gridPane);
   
    FlowPane flow = new FlowPane();
    flow.setAlignment(Pos.CENTER);
   
    _okButton = new Button("Valider");
    _okButton.setOnAction(this);
    _okButton.setDefaultButton(true);
    flow.getChildren().add(_okButton);
    FlowPane.setMargin(_okButton, insets);
   
    _exitButton = new Button("Quitter");
    _exitButton.setOnAction(this);
    _exitButton.setCancelButton(true);
    flow.getChildren().add(_exitButton);
    FlowPane.setMargin(_exitButton, insets);
   
    BorderPane.setAlignment(flow, Pos.CENTER);
    borderPane.setBottom(flow);
   
View Full Code Here

    GridPane.setMargin(averageLabel, insets);

    BorderPane.setAlignment(gridPane, Pos.CENTER);
    borderPane.setCenter(gridPane);

    FlowPane flow = new FlowPane();
    flow.setAlignment(Pos.CENTER);

    exitButton = new Button("Quitter");
    exitButton.setOnAction(new EventHandler() {

      @Override
      public void handle(Event arg0) {
        // TODO Auto-generated method stub
        close();
      }

    });
    exitButton.setCancelButton(true);
    flow.getChildren().add(exitButton);
    FlowPane.setMargin(exitButton, insets);

    BorderPane.setAlignment(flow, Pos.CENTER);
    borderPane.setBottom(flow);
View Full Code Here

    GridPane.setMargin(_passwordTextField, insets);
       
    BorderPane.setAlignment(gridPane, Pos.CENTER);
    borderPane.setCenter(gridPane);
   
    FlowPane flow = new FlowPane();
    flow.setAlignment(Pos.CENTER);
   
    _okButton = new Button("Valider");
    _okButton.setOnAction(this);
    flow.getChildren().add(_okButton);
    FlowPane.setMargin(_okButton, insets);
   
    _exitButton = new Button("Quitter");
    _exitButton.setOnAction(this);
    flow.getChildren().add(_exitButton);
    FlowPane.setMargin(_exitButton, insets);
   
    BorderPane.setAlignment(flow, Pos.CENTER);
    borderPane.setBottom(flow);
   
View Full Code Here

      GridPane.setMargin(_removePermissionComboBox, insets);

      BorderPane.setAlignment(gridPane, Pos.CENTER);
      borderPane.setCenter(gridPane);

      FlowPane flow = new FlowPane();
      flow.setAlignment(Pos.CENTER);

      _exitButton = new Button("Quitter");
      _exitButton.setOnAction(this);
      flow.getChildren().add(_exitButton);
      FlowPane.setMargin(_exitButton, insets);

      BorderPane.setAlignment(flow, Pos.CENTER);
      borderPane.setBottom(flow);
View Full Code Here

TOP

Related Classes of javafx.scene.layout.FlowPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.