【发布时间】:2017-06-21 17:02:20
【问题描述】:
考虑以下代码:
public class Main extends Application {
public static void main(String[] args) throws Exception {
launch( args );
}
@Override
public void start(Stage stage) throws Exception {
final BorderPane p = new BorderPane();
final Dialog dialog = new Dialog() { {
getDialogPane().setContent( new Button( "TEXT" ) );
} };
final Button bt = new Button( "LAUNCH" );
bt.setOnAction( e -> dialog.show() );
p.setCenter( bt );
stage.setScene( new Scene( p ));
stage.show();
}
}
结果是:
代码是简化的例子。
问题在于底部有多余的空间。有什么办法可以去掉吗?谢谢。
【问题讨论】:
标签: javafx dialog padding space