Lab #3 Safecracking GUI solution


Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment


5/5 - (1 vote)

In today’s lab we will create the following functional Safecracking GUI
The GUI will have 4 text fields which will be the code and the user will be able to modify each number in the code by pushing the corresponding up/down buttons
There should also be an unlock button and an output text field to inform the user the outcome of their unlock attempt. (eg if it was successful it will say success, if is the wrong code, it should tell them to try again)
eel free to take some creative liberties with the design (eg colors) / layout of the gui (for example the placement of the buttons). I’m mainly looking for the action listeners for each of the buttons to work and the unlock button to give a success/fail message if the correct code is entered.
hints To get started you can look at the Text ield listener example from the notes. ou will need to modify it to handle looking at the contents of the text field and increase / decrease the value based on what value is pushed.
you can use the mod function () to make sure you only go between 0- but if you have trouble with that that’s fine. again, this lab is mainly about the listeners on a GUI