Package javafx.scene

Examples of javafx.scene.Parent


    Application.launch(args);
  }

  @Override
  public void start(Stage primaryStage) throws Exception {
    Parent p = FXMLLoader.load(Launcher.class.getResource("Controller.fxml"));
    Scene s = new Scene(p);
    primaryStage.setScene(s);
    primaryStage.show();
  }
View Full Code Here


        log.info("Starting Hello JavaFX and Maven demonstration application");

        String fxmlFile = "/fxml/hello.fxml";
        log.debug("Loading FXML for main view from: {}", fxmlFile);
        FXMLLoader loader = new FXMLLoader();
        Parent rootNode = (Parent) loader.load(getClass().getResourceAsStream(fxmlFile));

        log.debug("Showing JFX scene");
        Scene scene = new Scene(rootNode, 400, 200);
        scene.getStylesheets().add("/styles/styles.css");
View Full Code Here

    Launch.launch(args);
  }

  @Override
  public void start(Stage primaryStage) throws Exception {
    Parent p = (Parent) FXMLLoader.load(Launch.class.getResource("HelloWorld.fxml"), ResourceBundle.getBundle("at.bestsolution.efxclipse.tutorial.fxgraph.messages"));
    Scene s = new Scene(p);
    primaryStage.setScene(s);
    primaryStage.show();
 
  }
View Full Code Here

public class TestJavaScript extends Application {

  @Override
  public void start(Stage primaryStage) {
    try {
      Parent p = FXMLLoader.load(getClass().getResource("TestJavaScript.fxml"));
      primaryStage.setScene(new Scene(p));
      primaryStage.show();
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

    Application.launch(args);
  }

  @Override
  public void start(Stage primaryStage) throws Exception {
    Parent p = FXMLLoader.load(Launcher.class.getResource("IncludeTest.fxml"));
    Scene s = new Scene(p);
    primaryStage.setScene(s);
    primaryStage.show();
  }
View Full Code Here

public class TestGroovyScript extends Application {

  @Override
  public void start(Stage primaryStage) {
    try {
      Parent p = FXMLLoader.load(getClass().getResource("TestGroovyScript.fxml"));
      primaryStage.setScene(new Scene(p));
      primaryStage.show();
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

              public void apply(final Button it) {
                it.setText("Say hello");
                final Procedure1<ActionEvent> _function = new Procedure1<ActionEvent>() {
                    public void apply(final ActionEvent it) {
                      Scene _scene = primaryStage.getScene();
                      Parent _root = _scene.getRoot();
                      Node _lookup = _root.lookup("#helloField");
                      final TextField f = ((TextField) _lookup);
                      String _text = f.getText();
                      MyBuilderApplication.this.out.println(_text);
                    }
                  };
View Full Code Here

              public void apply(final Button it) {
                it.setText("Say hello");
                final Procedure1<ActionEvent> _function = new Procedure1<ActionEvent>() {
                    public void apply(final ActionEvent it) {
                      Scene _scene = primaryStage.getScene();
                      Parent _root = _scene.getRoot();
                      Node _lookup = _root.lookup("#helloField");
                      final TextField f = ((TextField) _lookup);
                      String _text = f.getText();
                      MyStaticBuilderApplication.this.out.println(_text);
                    }
                  };
View Full Code Here

              public void apply(final Button it) {
                it.setText("Say hello");
                final Procedure1<ActionEvent> _function = new Procedure1<ActionEvent>() {
                    public void apply(final ActionEvent it) {
                      Scene _scene = primaryStage.getScene();
                      Parent _root = _scene.getRoot();
                      Node _lookup = _root.lookup("#helloField");
                      final TextField f = ((TextField) _lookup);
                      String _text = f.getText();
                      MyWithApplication.this.out.println(_text);
                    }
                  };
View Full Code Here

    launch(args);
  }

  @Override
  public void start(Stage primaryStage) throws Exception {
    Parent node = InjectingFXMLLoader.loadFXML(Guice.createInjector(new ExampleModule()), getClass().getResource("guice.fxml"));
    Scene scene = new Scene(node);
    primaryStage.setScene(scene);
    primaryStage.show();
  }
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.