SettingsDialog.java 文件源码

java
阅读 39 收藏 0 点赞 0 评论 0

项目:jmonkeybuilder 作者:
/**
 * Create the anisotropy control
 */
@FXThread
private void createAnisotropyControl(@NotNull final VBox root) {

    final HBox container = new HBox();
    container.setAlignment(Pos.CENTER_LEFT);

    final Label label = new Label(Messages.SETTINGS_DIALOG_ANISOTROPY + ":");

    anisotropyComboBox = new ComboBox<>();
    anisotropyComboBox.prefWidthProperty().bind(root.widthProperty());
    anisotropyComboBox.getSelectionModel()
            .selectedItemProperty()
            .addListener((observable, oldValue, newValue) -> validate());

    FXUtils.addToPane(label, container);
    FXUtils.addToPane(anisotropyComboBox, container);
    FXUtils.addToPane(container, root);

    FXUtils.addClassTo(label, CSSClasses.SETTINGS_DIALOG_LABEL);
    FXUtils.addClassTo(anisotropyComboBox, CSSClasses.SETTINGS_DIALOG_FIELD);

    final ObservableList<Integer> items = anisotropyComboBox.getItems();
    items.addAll(ANISOTROPYCS);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号