D
D
Dima Gashko2019-03-28 14:18:58
Java
Dima Gashko, 2019-03-28 14:18:58

How to create dynamically changing applications using JavaFx?

Here, for example, there is a very simple "application":
https://mathcalc.tk/matrix-mul-matrix/
How can this be done in JavaFX?
I can "implement" such a thing in FXML - it's not difficult. But I can only do this with a specific number of rows and columns. But as you can see, in this application you can dynamically change the number of rows and columns.
How is this done in JavaFx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Neonoviiwolf, 2019-03-28
@Neonoviiwolf

yes, an excerpt from

ImageCustom imageCustom = new ImageCustom();
                imageCustom.setFitHeight(150);
                imageCustom.setFitWidth(150);
                imageCustom.setPickOnBounds(true);
                imageCustom.setPreserveRatio(true);

                imageCustom.setURL(strExport + resultSet.getString("id").trim() + strJPG);
                imageCustom.setImage(image);
                imageLayout.add(imageCustom, 0, imageLayout.getChildren().size()); // вот что нужно

here an object is dynamically created, by clicking the user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question