N
N
Neonoviiwolf2017-10-30 19:00:23
JavaFX
Neonoviiwolf, 2017-10-30 19:00:23

How to get the height of the Label element itself in javafx?

Good, there

Label nameText = new Label();
            nameText.setWrapText(true);
            nameText.setMaxWidth(100);

            nameText.setText("test, test, test, test, test, test, test");

so, I need to find out what height the nameText itself will have depending on the amount of text, but I can’t even find this parameter

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question