public void show(String title, String message, ButtonSet buttonSet) {

        switch (buttonSet) {
        case OK:
            buttonOK.setVisible(true);
            buttonCancel.setVisible(false);
            break;
        case CANCEL:
            buttonOK.setVisible(false);
            buttonCancel.setVisible(true);
            break;
        case OK_CANCEL:
            buttonOK.setVisible(true);
            buttonCancel.setVisible(true);
            break;
        }

        setTitle(title);
        setMessage(message);
        pack();
        setLocationRelativeTo(null);
        setVisible(true);
    }