有没有一种快速方法可以删除 JavaFX 中的对话框标头?或者我应该去创建自己的对话框?
TextInputDialog dialog = new TextInputDialog();
dialog.setTitle("create DATABASE");
dialog.setHeaderText("create DATABASE");
dialog.setContentText("Ingrese un nombre:");
dialog.showAndWait().ifPresent(name -> getCodeArea().setTemplateInjump("create database "+name+";\n\nuse "+name+";\n\n"));
是的,您可以通过将图形和标题文本设置为空来实现此目的:
dialog.setHeaderText(null);
dialog.setGraphic(null);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)