Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. import javafx.application.Application;
  2. import static javafx.application.Application.launch;
  3. import javafx.fxml.FXMLLoader;
  4. import javafx.scene.Parent;
  5. import javafx.scene.Scene;
  6. import javafx.stage.Stage;
  7.  
  8. public class Main extends Application {
  9.  
  10. @Override
  11. public void start(Stage stage) throws Exception {
  12. Parent root = FXMLLoader.load(getClass().getResource("/fxml/main-window.fxml"));
  13. stage.setTitle("Atualizar um Label automaticamente a cada minuto");
  14. stage.setScene(new Scene(root));
  15. stage.show();
  16. }
  17.  
  18. public static void main(String[] args) {
  19. launch(args);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement