JavaFX 2 BorderPane Использовать полное пространство

Я просто столкнулся с небольшой проблемой, которую не могу решить самостоятельно. Я пытаюсь поместить vBox, включая TextField и HTML -Editor, в свой BorderPane, но все пространство не используется. Другая проблема заключается в том, что если я сжимаю окно, редактор html -перекрывается с моим левым окном опций.

enter image description here

private void initEditor()
{
editor = new HTMLEditor();
editor.setId("editor");
editor.lookup(".top-toolbar").setDisable(true);
editor.lookup(".top-toolbar").setManaged(false);
((ToolBar) editor.lookup(".bottom-toolbar")).getItems().addAll(FXCollections.observableArrayList(((ToolBar)editor.lookup(".top-toolbar")).getItems()));

editorBox = new VBox();
TextField field = new TextField();
field.setPrefHeight(36);
field.setId("editor-title");
editorBox.setFillWidth(true);
editorBox.getChildren().addAll(field, editor);
    root.setCenter(editorBox);
}
7
задан Eng.Fouad 21 February 2015 в 04:05
поделиться