N
N
Naoto2014-09-25 22:00:48
JavaFX
Naoto, 2014-09-25 22:00:48

Removing a container and all its elements from a form in JavaFX 2.x?

Hello colleagues.
Recently, I decided to understand JavaFX and up to this point I coped with all the obstacles that arose along the way. But now I need to implement the removal of the VBox container with all its elements by clicking on the button located on it . I can’t find a solution to this problem either (either I’m asking Google the wrong question, or I’m looking in the wrong direction). Help with an example or advice, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Naoto, 2014-10-07
@Naoto

The answer was to use the Model-View-Presenter pattern. It is not possible to remove an element from itself in JavaFX, it is necessary to outsource this operation to an outer class, since the removal occurs from the list of child elements of the parent container/element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question