I am using the following code to show an error alert :
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setContentText(resourceBundle.getString("loginError"));
alert.showAndWait();
This alert looks a little weird to me as there are two panes the top one just showing Error and a cross button and the bottom one showing the text incorrect username or password
Is there some way to get rid of the top pane?
As the header pane already showing Error and cross button I don't see the reason for the next pane to show Error and a red cross button

