Package javafx.scene.layout

Examples of javafx.scene.layout.Pane


        }
    }

    public void dispose() {
        if (node instanceof Pane) {
            Pane pane = (Pane) node;
            ObservableList<Node> list = pane.getChildren();
            if (list != null) {
                list.stream().filter((n) -> (n != null)).map((n) -> {
                    n.setMouseTransparent(false);
                    return n;
                }).forEach((n) -> {
                    EffectFX.clearBlurEffect(n);
                });
            }

            pane.getChildren().remove(getMainBorderPane());
            pane.requestFocus();
        }
    }
View Full Code Here


         @Override
         public ListCell<Image> call(ListView<Image> p) {
         return new ComboListCell();
         }
         });*/
        pane = new Pane();
        hbox_pwd = new HBox();
        hbox_pwd.setPadding(new Insets(0, 0, 0, 0));
        hbox_pwd.setSpacing(1);
        prog_pwd = new ProgressBar();
        prog_pwd.setProgress(0.0);
View Full Code Here

   
    this.runWithModel(new Log4jAppenderViewModel(model));
  }
 
  private void runWithModel(Log4jAppenderViewModel viewModel) {
    Pane pane = Log4jAppenderController.loadPane(viewModel);
   
    // Start a Thread that adds info messages
    Thread thread = new Thread(new Runnable() {
      private Random random = new Random();
     
View Full Code Here

   
    BorderPane pane = new BorderPane();
    pane.setTop(paneInfo.getPane());
    BorderPane.setMargin(paneInfo.getPane(), new Insets(10));
   
    Pane log4jPane = Log4jAppenderController.loadPane(log4model);
   
    pane.setCenter(log4jPane);
    BorderPane.setMargin(log4jPane, new Insets(10));
       
    JuFxUtils.startApplication()
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

   * @return PaneInfo instance
   */
  public static <T> PaneInfo<T> loadPane(URL paneFxmlUrl, Class<T> controllerClass) {
    try {
      FXMLLoader loader = new FXMLLoader(paneFxmlUrl);
      Pane pane = (Pane)loader.load();
      T controller = loader.getController();
      return new PaneInfo<T>(pane, controller);
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't load pane from URL " + paneFxmlUrl, ex);
    }
View Full Code Here

 
  public static JFXPanel createJFXPanel(URL paneFxmlUrl, PaneInitializer initializer) {
    AssertUtil.assertNotNull("FXML URL must not be null", paneFxmlUrl);
   
    try {
      Pane pane = FXMLLoader.load(paneFxmlUrl);
      return JuFxUtils.createJFXPanel(pane, initializer);
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't create JFXPanel", ex);
    }
  }
View Full Code Here

    rows = resources.rows();
    columns = resources.columns();
   
    connectionLines = new ArrayList<Line>();
   
    content = new Pane();
    content.setId("content pane for genes");
   
    // generate the GUIGenes
    // inputs
    guiInputs = new GUIInput[resources.inputs()];
View Full Code Here

     * Now we deal with the stage.
     */
    primaryStage.setTitle("JCGP");
   
    // this pane holds the entire scene, that is its sole job.
    Pane sceneParent = new Pane();
    // the experiment layer should fill the entire scene parent
    experimentLayer.prefHeightProperty().bind(sceneParent.heightProperty());
    experimentLayer.prefWidthProperty().bind(sceneParent.widthProperty());
    // the function selector goes over the experiment layer so it doesn't get covered by other panes
    sceneParent.getChildren().addAll(experimentLayer, functionSelector);
   
    // set the scene, minimum sizes, show
    primaryStage.setScene(new Scene(sceneParent));
    primaryStage.setMinWidth(800);
    primaryStage.setMinHeight(600);
View Full Code Here

        ImageView view = new ImageView(qrImage);
        view.setEffect(new DropShadow());
        // Embed the image in a pane to ensure the drop-shadow interacts with the fade nicely, otherwise it looks weird.
        // Then fix the width/height to stop it expanding to fill the parent, which would result in the image being
        // non-centered on the screen. Finally fade/blur it in.
        Pane pane = new Pane(view);
        pane.setMaxSize(qrImage.getWidth(), qrImage.getHeight());
        final Main.OverlayUI<ClickableBitcoinAddress> overlay = Main.instance.overlayUI(pane, this);
        view.setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent event) {
                overlay.done();
View Full Code Here

TOP

Related Classes of javafx.scene.layout.Pane

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.