Professional Documents
Culture Documents
Lab Act Finals
Lab Act Finals
STUDENT NO:
YEAR/SECTION
DATE:
Login Screen
QUEZON CITY UNIVERSITY
COLLEGE OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY
Codes:
Log In Controller
package com.login.loginfinal;
import io.github.palexdev.materialfx.controls.MFXButton;
import io.github.palexdev.materialfx.controls.MFXPasswordField;
import io.github.palexdev.materialfx.controls.MFXTextField;
import javafx.animation.TranslateTransition;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.input.KeyCode;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import java.io.IOException;
import java.sql.*;
if (resultSet.next()) {
uName = userNameValue;
dashBoard();
} else {
TranslateTransition translateTransition = new TranslateTransition();
translateTransition.setDuration(javafx.util.Duration.seconds(0.5));
translateTransition.setNode(signInPane);
translateTransition.setToX(0);
translateTransition.play();
}
} catch (SQLException e) {
e.printStackTrace();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
import javafx.fxml.FXML;
import javafx.scene.control.Label;
@FXML
private Label userWelcome;
App
package com.login.loginfinal;
import io.github.palexdev.materialfx.css.themes.MFXThemeManager;
import io.github.palexdev.materialfx.css.themes.Themes;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;