/** * Set the details section of the error dialog. If the details are either null * or an empty string, then hide the detailsPane button and hide the detail * scroll pane. Otherwise, just set the detailsPane section. * * @param details * Details to be shown in the detail section of the dialog. This * can be null if you do not want to display the details section of * the dialog. */ public void setDetails(String details) { if (details == null || details.equals("")) { setDetailsVisible(false); detailsButton.setVisible(false); } else { this.detailsPane.setText(details); setDetailsVisible(false); detailsButton.setVisible(true); } }
/** * Set the details section of the error dialog. If the details are either null * or an empty string, then hide the detailsPane button and hide the detail * scroll pane. Otherwise, just set the detailsPane section. * * @param details * Details to be shown in the detail section of the dialog. This * can be null if you do not want to display the details section of * the dialog. */ public void setDetails(String details) { if (details == null || details.equals("")) { setDetailsVisible(false); detailsButton.setVisible(false); } else { this.detailsPane.setText(details); setDetailsVisible(false); detailsButton.setVisible(true); } }