create a text box for the user to enter an integer between 3-6(inclusive)

there are two main component/criterias which need to be met in this assignment. this a javafx assignment which is to render a 2d shape based on an integer input by a user. component 1: create a text box for the user to enter an integer between 3-6(inclusive) . each number corrisponds to the number of sides the shape will have. i.e. the input ‘3’ will generate a 3sided shape i.e a triangle. if an integer outside the range of 3-6 is entered. this will produce an error. i have already done that. the second component states that a user can only increase/decrease the input the number of sides of the shape displayed on the scene by 1. this means if i.e a a user inputs an integer of ‘4’ which produces a 4 sided shape, he can only enter a ‘5’ or a ‘3’. otherwise an error will occur saying you can only increase’decrease by 1. also there can only be one shape on the screen. i.e if there is a triangle on the screen, and the user inputs an integer of ‘4’, a 4 sided shape would replace the triangle. I have already created the shapes and met the criteria for component 1. currently in my code, after a user inputs a valid number (3-6) the textbox needed for the user to input an integer dissapears. and I have a buttons to increase/decrease which do not work and are wrong. after the first input by the user/the first shape is drawn, i want the user to be able to have a textbox to enter another integer. however this integer should be limited to a decrease/decrease in the number of sides of the active shape by 1 after everyshape is drawn. i have attached by current code and the actual assignment instructions. please ignore the essay part. just do the coding aspect

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.