Skip to content
Snippets Groups Projects
Commit 5793a42b authored by Sean Kim's avatar Sean Kim
Browse files

fixed display issue in maine scene

parent 20249453
No related branches found
No related tags found
No related merge requests found
Pipeline #8481 canceled
[{"platform":"master","username":"seannykimmy","password":"3UiVsXvyL/GzCjCt27PI0w==:tGQegCz6swKnt+o1mRxqvw==:jAbH5YDHI5dxEBiispkK9elrJi85s+fobTGvxvQlIQ8="}]
\ No newline at end of file
......@@ -18,6 +18,15 @@ public class MainPageController {
@FXML
private Label currUsername;
@FXML
public void initialize() {
// Set the username when the scene initializes
String username = UserSession.getUsername();
if (username != null && currUsername != null) {
currUsername.setText(username);
}
}
public void setCurrUsername(String username) {
if (currUsername != null) {
currUsername.setText(username);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment