I need help writing proper Java code for a notification feature on a GUI interface....
60.1K
Verified Solution
Question
Accounting
I need help writing proper Java code for a notification feature on a GUI interface. The code is just a small section of the system.
Here are some notes and an algorithm I tried to throw together if it's of any help.
Notifications of Error- Notifications Class
Assume that it will deal with Exceptions in Java (See lab 5 and notes for help)
Customer Field
All the data entered in the field is correct and in a proper format
- If the data passes all the checks (maybe have a value that increments to keep track if all the checks and tests have been passed)
- Notification displayed Congratulations, your account has been created! Please await a response from a sales representative after the approval of your transfer
Entered a letter in the contact number field: Checks if a letter is in the contact information
Loop to run through each character in the phone number
If its not an integer then
Notification is displayed There is a letter present in the number entered. Please renter your information
If it is an integer then
The system passes and moves on to the next character in the loop
If the name fields have an integer (or maybe a special character minus hyphen): Checks if a integer is in the name
Loop to run through each character in the name
If its not an letter then
Notification is displayed There is a number present in the name entered. Please renter your information
If it is an letter then
The system passes and moves on the next character in the loop
Empty field: Checks if a specific field is empty
If first name = or
Display a notification Please enter your first name
Capital letters in email: Checks if a capital letter has been entered in the email address
Loop to run through each character in the email address
If its not an integer then it is checked for uppercase (nested)
Uppercase
x represents the letter from the email address collected by the loop
x1 = Character.isUpperCase(x);
If x1 is true then
Notification is displayed There is an uppercase letter present in the email address. Please renter your details
If x1 is false
The letter is lower case and the program can move on
If it is an integer, pass and move on to the next letter
(Tip: add pass in the else to exit the if and loop to the next character in the email address)
public static boolean isUpperCase(char ch) (Declaration)
Notifications for Errors Requirement ID: 4- Notification function Use Case: Notifing user of changes in the status of processes Rationale: Knowing the status of processes is vital to the smooth operation of this information heavy business. User Requirement: The system shall allow authorized personnel to quickly view the status of processes. System Requirements: 4.1 Consequent to the verification of process completion, the system shall allow the user to view a prompt saying a process has been completed. 4.2 The system shall provide a means to view if a process is incomplete. 4.3 The system shall provide a means to view if a process is deemed to be on-going (still in- progress) Acceptance Criteria: 1. Upon completion of a process, a prompt will be sent 1 minute later showing the user that the process has been completed. 2. At the end of a work day a prompt will be sent to the user's pc which processes are still in progress. Relates to/Dependencies: Tracks customers Progress, Real-Time data Collection and Transfer Notifications for Errors Requirement ID: 4- Notification function Use Case: Notifing user of changes in the status of processes Rationale: Knowing the status of processes is vital to the smooth operation of this information heavy business. User Requirement: The system shall allow authorized personnel to quickly view the status of processes. System Requirements: 4.1 Consequent to the verification of process completion, the system shall allow the user to view a prompt saying a process has been completed. 4.2 The system shall provide a means to view if a process is incomplete. 4.3 The system shall provide a means to view if a process is deemed to be on-going (still in- progress) Acceptance Criteria: 1. Upon completion of a process, a prompt will be sent 1 minute later showing the user that the process has been completed. 2. At the end of a work day a prompt will be sent to the user's pc which processes are still in progress. Relates to/Dependencies: Tracks customers Progress, Real-Time data Collection and TransferGet Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
- Unlimited Question Access with detailed Answers
- Zin AI - 3 Million Words
- 10 Dall-E 3 Images
- 20 Plot Generations
- Conversation with Dialogue Memory
- No Ads, Ever!
- Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Other questions asked by students
StudyZin's Question Purchase
1 Answer
$0.99
(Save $1 )
One time Pay
- No Ads
- Answer to 1 Question
- Get free Zin AI - 50 Thousand Words per Month
Unlimited
$4.99*
(Save $5 )
Billed Monthly
- No Ads
- Answers to Unlimited Questions
- Get free Zin AI - 3 Million Words per Month
*First month only
Free
$0
- Get this answer for free!
- Sign up now to unlock the answer instantly
You can see the logs in the Dashboard.