Answer the question
In order to leave comments, you need to log in
How to solve problem with TextArea in Accordion. JavaFX?
Hello. I have a trace. the problem is, when added to an Accordion TextArea with the specified height, the following is obtained:
//Desription
Label desriptionLabel = new Label("Описание проекта: ");
TextArea desriptionTextArea = new TextArea();
HBox desriptionGroup = new HBox(desriptionLabel, desriptionTextArea);
{
desriptionLabel.setAlignment(Pos.CENTER_LEFT);
desriptionLabel.setPrefWidth(130);
desriptionTextArea.setWrapText(true);
desriptionTextArea.setMinHeight(180);
desriptionGroup.setAlignment(Pos.CENTER_LEFT);
HBox.setHgrow(desriptionTextArea, Priority.ALWAYS);
}
VBox otherSettings = new VBox(desriptionGroup, authorGroup, authorSiteGroup);
root.getPanes().addAll(new TitledPane("Основные настройки", mainSettings), new TitledPane("Дополнительные настройки", otherSettings));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question