/** * Returns a basic info dialog (ok). * * @param owner the owner of the dialog * @param modal the modality of the dialog */ public static ApprovalDialog getInformationDialog(Dialog owner, ModalityType modal) { ApprovalDialog result; result = new ApprovalDialog(owner, modal); result.setApproveVisible(true); result.setDiscardVisible(false); result.setCancelVisible(false); return result; }
/** * Returns a basic info dialog (ok). * * @param owner the owner of the dialog * @param modal whether to create a modal dialog */ public static ApprovalDialog getInformationDialog(Frame owner, boolean modal) { ApprovalDialog result; result = new ApprovalDialog(owner, modal); result.setApproveVisible(true); result.setDiscardVisible(false); result.setCancelVisible(false); return result; } }