Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ChatBot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
miromar
ChatBot
Merge requests
!29
Added JavaDoc commenting to several classes.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Added JavaDoc commenting to several classes.
jonidev
into
main
Overview
1
Commits
2
Pipelines
0
Changes
6
Open
jonilas
requested to merge
jonidev
into
main
2 years ago
Overview
1
Commits
2
Pipelines
0
Changes
6
Expand
0
0
Merge request reports
Compare
main
version 1
0ca97793
2 years ago
main (HEAD)
and
version 1
latest version
ee930963
2 commits,
2 years ago
version 1
0ca97793
1 commit,
2 years ago
6 files
+
135
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/main/java/com/chatbot/AdminViewController.java
+
13
−
0
Options
/**
* A controller class for the Admin View in the chatbot application. This class handles
* user login, displaying login status, and loading the admin panel if the login is successful.
*/
package
com.chatbot
;
import
javafx.fxml.FXML
;
@@ -31,6 +36,10 @@ public class AdminViewController {
ResourceBundle
bundle
=
ResourceBundle
.
getBundle
(
"information"
,
locale
.
getLocale
());
/**
* Handles the login process by checking the user's credentials and updating
* the info label accordingly. If the login is successful, it loads the admin panel.
*/
@FXML
private
void
login
()
{
String
user
=
Username
.
getText
();
@@ -46,6 +55,10 @@ public class AdminViewController {
}
}
/**
* Loads the admin panel (EditQAView) and replaces the current view in the center
* of the root layout.
*/
private
void
loadAdminPanel
()
{
Node
node
=
info
.
getScene
().
lookup
(
"#rootLayout"
);
Loading