Package javafx.scene

Examples of javafx.scene.Parent


        // load FXML
      String lName = this.getClass().getSimpleName() + ".fxml";
      URL lURL = this.getClass().getResource(lName);
      //System.out.println("loading FXML " + lName + " -> " + lURL);
      if (lURL == null) throw new IllegalStateException("FXML file not found: " + lName);
      Parent lRoot = (Parent)FXMLLoader.load(lURL, null, new JFXtrasBuilderFactory());     
      return lRoot;
    }
    catch (IOException e) {
      throw new RuntimeException(e);
    }
View Full Code Here


        // load FXML
      String lName = this.getClass().getSimpleName() + ".fxml";
      URL lURL = this.getClass().getResource(lName);
      //System.out.println("loading FXML " + lName + " -> " + lURL);
      if (lURL == null) throw new IllegalStateException("FXML file not found: " + lName);
      Parent lRoot = (Parent)FXMLLoader.load(lURL, null, new JFXtrasBuilderFactory());
      return lRoot;
    }
    catch (IOException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

      URL lURL = this.getClass().getResource(lName);
      //System.out.println("loading FXML " + lName + " -> " + lURL);
      if (lURL == null) {
        throw new IllegalStateException("FXML file not found: " + lName);
      }
      Parent lRoot = (Parent)FXMLLoader.load(lURL, null, new JFXtrasBuilderFactory());
      return lRoot;
    }
    catch (IOException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

        // load FXML
      String lName = this.getClass().getSimpleName() + ".fxml";
      URL lURL = this.getClass().getResource(lName);
      //System.out.println("loading FXML " + lName + " -> " + lURL);
      if (lURL == null) throw new IllegalStateException("FXML file not found: " + lName);
      Parent lRoot = (Parent)FXMLLoader.load(lURL, null, new JFXtrasBuilderFactory());
      return lRoot;
    }
    catch (IOException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

        // load FXML
      String lName = this.getClass().getSimpleName() + ".fxml";
      URL lURL = this.getClass().getResource(lName);
      //System.out.println("loading FXML " + lName + " -> " + lURL);
      if (lURL == null) throw new IllegalStateException("FXML file not found: " + lName);
      Parent lRoot = (Parent)FXMLLoader.load(lURL, null, new JFXtrasBuilderFactory());
      return lRoot;
    }
    catch (IOException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

        // load FXML
      String lName = this.getClass().getSimpleName() + ".fxml";
      URL lURL = this.getClass().getResource(lName);
      //System.out.println("loading FXML " + lName + " -> " + lURL);
      if (lURL == null) throw new IllegalStateException("FXML file not found: " + lName);
      Parent lRoot = (Parent)FXMLLoader.load(lURL, null, new JFXtrasBuilderFactory());
      return lRoot;
    }
    catch (IOException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

*/
public class CLC extends Application {
   
    @Override
    public void start(Stage stage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
       
        Scene scene = new Scene(root);
       
        stage.setScene(scene);
        stage.show();
View Full Code Here

        scene.setFill(null);

        // Uso Injector per caricare le gui preimpostate. Vi e' anche la
        // possibilita' di caricare gui specifiche passando il percorso del
        // file .fxml.
        Parent root_login = LooB.get().loadLogin();
        root_login.setId("root_login");
        main_pane.setCenterNode(root_login);

        // Imposto il primo scene, la GUI NON E' RIDIMENSIONABILE
        stage.setScene(scene);
        stage.setResizable(false);
View Full Code Here

        String fxml = ip.fxml();
        String id = ip.id();

        if (fxml != null) {
            Parent parent = loadJFXUI(fxml, ap);
            parent.setId(id);
            if (parent != null) {
                f.setAccessible(true);
                f.set(ap, parent);
            }
        }
View Full Code Here

    public void run() {
        try {
            if (!isValidMakiDirectory()) {
                __main_pane = new BorderPane();
                __main_pane.setId("disclaimer_pane_container");
                Parent disclaimer = LooB.get().loadDisclaimer();
                disclaimer.setId("root_login");
                __main_pane.setCenter(disclaimer);

                Scene scene = new Scene(__main_pane);
                stage.getIcons().add(Utility.getImage(Constants.ICN_OFFICIAL32));
                scene.getStylesheets().add(Disclaimer.class.getResource("/resources/css/main.css").toExternalForm());
View Full Code Here

TOP

Related Classes of javafx.scene.Parent

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.