Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package controllers;
- import javafx.event.ActionEvent;
- import javafx.fxml.FXML;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Node;
- import javafx.scene.Parent;
- import javafx.scene.Scene;
- import javafx.stage.Stage;
- import java.io.IOException;
- public class SignInViewController {
- @FXML private javafx.scene.control.Button closeButton;
- @FXML private javafx.scene.control.Button signInButton;
- @FXML private void closeButtonAction(){
- Stage stage = (Stage) closeButton.getScene().getWindow();
- stage.close();
- }
- @FXML private void signInAction(ActionEvent event)throws IOException {
- Parent view2 = FXMLLoader.load(getClass().getClassLoader().getResource("viewsFxml/klient/clientView.fxml"));
- Scene scene2 = new Scene(view2);
- Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();
- window.setScene(scene2);
- window.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement