Advertisement
pawlas91

Untitled

Jun 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. package stacjaPogodowa;
  2. import javafx.application.Application;
  3. import javafx.fxml.FXMLLoader;
  4. import javafx.scene.Parent;
  5. import javafx.scene.Scene;
  6. import javafx.stage.Stage;
  7.  
  8. public class Aplikacja extends Application {
  9.  
  10.     @Override
  11.     public void start(Stage primaryStage) throws Exception {
  12.         FXMLLoader fxmlLoader = new FXMLLoader(Aplikacja.class.getResource("Ramka.fxml"));
  13.         Parent layout = fxmlLoader.load();
  14.  
  15.         Scene scene = new Scene(layout);
  16.         primaryStage.setTitle("Stacja Pogodowa V1.0");
  17.         primaryStage.setScene(scene);
  18.         primaryStage.show();
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement