Question: In Java Ecplise Format You are asked to write a JavaFX program that works as below. When the program starts, the user sees an empty

In Java Ecplise Format

You are asked to write a JavaFX program that works as below. When the program starts, the user sees an empty text area (at the top part of the GUI), an empty text field in the middle, and a button with the label Create Word at the bottom.

The idea is that the user will create a document in the text area. Rather than typing every letter of every word, the GUI allows the user to create buttons for words or even longer pieces of text. This idea is explained below. Suppose the user expects to use the word is quite a bit. He/she can then type is in the text field and click the Create Word button. This will create a button with the label is just below the text area and just above the text field.

When the user clicks the is button, the word is is appended to the text already present in the text area. That way, the user ends up typing less. The user can create buttons for longer pieces of text, if he/she so chooses.

The user can create up to 20 buttons for words (or arbitrary sequences of text). The buttons should be arranged in a grid. Put up to four buttons in every row. The buttons should be filled from left to right and then top to bottom. The buttons should be created only if needed. Do not create 20 buttons right at the beginning and store them somewhere.

This is not a huge program. My code for it is 48 lines long, not counting comments and blank lines and Java annotations such as @Override. You need just a single class. You could construct the program using a small number of classes and classes/interfaces.

I used the following: Application, EventHandler, Button, TextArea, TextField, GridPane, VBox, Stage and, of course, Exception and String. I dont think I 1 missed any, but, in any case, treat this list as a helpful suggestion, neither a mandate nor a complete prescription.

demo video

https://mediaspace.minnstate.edu/media/ICS+372+Fall+2018+PA2+Demo/1_gxte73a3#

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!