![](/img/trans.png)
[英]How can I inherit the preferred size of a ComboBox or ChoiceBox in Java FX from the current selection?
[英]How I can change the default size of the ChoiceBox?
有些方法是從類javafx.scene.layout.Region繼承的。 如果需要setMaxHeight,setMaxWidth,setMaxSize,setPrefHeight,setPrefWidth,setPrefSize,則可以使用它們。
資源: https : //docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ChoiceBox.html#valueProperty--
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.