min max pre
Button button =newButton("ButtonButtonButtonButton");
button.setMinWidth(100);
button.setPrefWidth(120);
button.setMaxWidth(150);
button.getWidth()//父组件提供的宽度//类似 wrap_content
button.setPrefWidth(Button.USE_COMPUTED_SIZE);//Control.USE_COMPUTED_SIZE 类似 wrap_content//Control.USE_PREF_SIZE 固定值
尺寸&边界&位置&坐标min max preButton button = new Button("ButtonButtonButtonButton");button.setMinWidth(100);button.setPrefWidth(120);button.setMaxWidth(150);button.getWidth() //父组件提供的宽度//类似 wrap_contentbutton.setPrefWidth(Button.USE_COMPUTED_