Is there a quick way to remove a Dialog header in JavaFX? Or should i just go and create my own dialog?
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"));
Yes, you can achieve this by setting the graphic and header text to null:
dialog.setHeaderText(null);
dialog.setGraphic(null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With