A
A
Artem Smirnov2014-02-19 16:09:50
Java
Artem Smirnov, 2014-02-19 16:09:50

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:
c0b08983bc3954806203ba039a998f88.png

//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));

How to solve this problem? Make TextArea not run outside of TitledPane?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romanchi, 2015-07-26
@romanchi

Inside the TitledPane add a ScrollPane

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question