2个回答
展开全部
Button button = ButtonBuilder.create().text("Close").onAction(new EventHandler<ActionEvent>(){
@Override public void handle(ActionEvent e){
Event.fireEvent(stage, new WindowEvent(stage, WindowEvent.WINDOW_CLOSE_REQUEST ));
}
}).build();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询