Skip to content
Snippets Groups Projects
Select Git revision
  • ac4404677af6e6dbba8d81fd35a3784efc837acb
  • master default
  • disable-new-requests
  • fix-bulletin-view-missing-notes-error
  • add-missing-queue-managers
  • projects-task-53
  • projects-task-51
  • projects-task-43
  • projects-task-24
  • projects-task-31
  • projects-task-32
  • projects-task-8
  • project-setup-docs
  • projects-task-28
  • projects-task-27
  • projects-task-9
  • projects-task-7
  • mass-update-course-codes-in-sections
  • wdn-four
  • learning-outcomes
  • additional-bulletin-pages
  • svn-redesign
  • svn-popups
  • svn-trunk
  • svn-performance
  • svn-tim
26 results

AuthController.php

Blame
  • HomeController.java 1011 B
    package app;
    
    import javafx.fxml.FXML;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Node;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.stage.Stage;
    
    import java.awt.event.ActionEvent;
    import java.io.IOException;
    
    public class HomeController {
        @FXML
        private Label middle;
    
        public void clickLeftButton() {
            middle.setText("The button on the left was clicked.");
        }
    
        public void clickRightButton() {
            middle.setText("The button on the right was clicked.");
        }
    
        public void clickBottomButton() {
            middle.setText("This is the starter text.");
        }
    
        public void switchScreen(javafx.event.ActionEvent event) throws IOException {
            Parent parent = FXMLLoader.load(getClass().getResource("secondScreen.fxml"));
            Scene scene = new Scene(parent);
    
            Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
    
            window.setScene(scene);
            window.show();
        }
    }