Exercises proposed and solved in JavaFX


Hello everyone, today I leave a series of exercises proposed and solved JavaFX.

All the exercises we propose are solved in this same post, try to do it yourself and if you get stuck you can look at the solution. Remember, that your solution does not have to be the same with that of the post, the objective is that you learn not to copy the solution to me.

I recommend that you use trace messages, where necessary. If you have problems you can also use the debugger.

Here are all the posts related to Java:

Java course

one) Create the following screen with JavaFX.

When the user enters numbers (control with exceptions) and click on add, he must show the final result in the txtResult.

You can download it here.

Spoiler Inside SelectShow>

two) Create the following screen with JavaFX.

When the user writes numbers (control it with exceptions) and according to which operation he chooses, he must do the operation and show it in the txtResultado. Bear in mind that the division, we must control that the second operand must not be 0.

You can download it here.

Spoiler Inside SelectShow>

3) Create the following screen with JavaFX.

Clicking on the add person button will create a Person object and insert it into the table.

You can download it here.
Spoiler Inside SelectShow>

4) Given the previous exercise, add the following.

When selecting in a record, it will show the data in the txt.

When you press the Modify button, the selected record will be modified with the data in the txt (editing the object).

When you press the Delete button, the selected record will be deleted from the table.

You can download it here.

Spoiler Inside SelectShow>

5) Given the previous exercise, modify the window.

When you press the add Person button, the following window will be displayed.

When we fill in the data, it will close the window and add the person to the table.

You can download it here.

Spoiler Inside SelectShow>

6) Given the previous exercise, modify the window.

When you press the add Person button, the following window will be displayed.

When we fill in the data, it will close the window and add the person to the table.

When we click modify, the previous window will open, but with the data loaded and when saving it will edit the selected object.

When we press delete, delete the object from the table.

You can download it here.

Spoiler Inside SelectShow>

7) Dado el ejercicio anterior, modifica la ventana (se mantiene el dialogo de persona).

Cuando escribamos en el txt de arriba, filtrara los nombre de las personas que contengan el texto que tu indiques.

Puedes descargarlo aquí.

Spoiler Inside SelectShow>

Espero que os sea de ayuda. Si tenéis dudas, preguntad. Estamos para ayudarte.

Leave a comment

Your email address will not be published. Required fields are marked *