더 작은 데이터 집합에 대해 동일한 바인딩이 작동합니까?
다음 코드는 저에게 적합합니다. Popup은 처음으로 나타나기까지 1-2 초의 지연이 있습니다.
public class DoHugeChoiceBox extends Application {
@Override
public void start(Stage stage) {
ObservableList<String> list = FXCollections.<String>observableArrayList();
for (int i = 0; i < 2000; i++) {
list.add("item " + i);
}
ChoiceBox cb = new ChoiceBox(list);
cb.getSelectionModel().select(1000);
HBox g = HBoxBuilder.create().children(cb).build();
stage.titleProperty().bind(cb.valueProperty());
stage.setScene(new Scene(g));
stage.setHeight(100);
stage.setWidth(200);
stage.show();
}
public static void main(String[] args) { launch(); }
}
이것은 문자 그대로 문제가 될 수 있으며이를 재생산하는 코드를 보여줘야합니다. 이것이 유일한 예외입니까? 아니면 중첩 예외입니까? –