private void populateStage() {
        String iconFile;

        switch (type) {
            case ACCEPT:
                iconFile = "Dialog-accept.jpg";
                addOKButton();
                break;
            case ERROR:
                iconFile = "Dialog-error.jpg";
                addOKButton();
                break;
            case INFO:
                iconFile = "Dialog-info.jpg";
                addOKButton();
                break;
            case QUESTION:
                iconFile = "Dialog-question.jpg";
                break;
            default:
                iconFile = "Dialog-info.jpg";
                break;
        }

        try {
            loadIconFromResource(iconFile);
        } catch (Exception ex) {
            System.err.println("Exception trying to load icon file: " + ex.getMessage());
        }

        BorderPane.setAlignment(icon, Pos.CENTER);
        BorderPane.setMargin(icon, new Insets(5, 5, 5, 5));
        pane.setLeft(icon);

        BorderPane.setAlignment(message, Pos.CENTER);
        BorderPane.setMargin(message, new Insets(5, 5, 5, 5));
        pane.setCenter(message);

        scene = new Scene(pane);
        for (int i = 0; i < stylesheets.size(); i++) {
            try {
                scene.getStylesheets().add(stylesheets.get(i));
            } catch (Exception ex) {
                System.err.println("Unable to load specified stylesheet: " + stylesheets.get(i));
                System.err.println(ex.getMessage());
            }
        }
        stage.setScene(scene);
    }