Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How to write multiple conditions if the name is not found in file or password is wrong show the error message , and second condition
How to write multiple conditions if the name is not found in file or password is wrong show the error message , and second condition open class"Add" for Admin or class"Search" for User .
Problem: In this exam, we aim to implement a train management system. We have two actors: - Admin: responsible for adding the trains to the system - User: able to search for a train and make a reservation through the system; All the trains 'data will be stored in a file. It contains all the trains as Train Objects. In follow, we will explain the different GUIs of our system. 1. Login GUI: - If the admin login does not exsit in the database or the password is wrong, the system shows the following message : - The "Enter" button opens the page "Add Train" for the admin or the "Search Train" for the user. - The "Cancel" button cleans the JTextField and the JPasswordFieldStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started