Exemple #1
0
 public int showConfirmFileOverwriteDialog(File outFile) {
   return JOptionPane.showConfirmDialog(
       this.getFrame(),
       "Replace existing file\n" + outFile.getName() + "?",
       "Overwrite Existing File?",
       JOptionPane.YES_NO_CANCEL_OPTION);
 }
Exemple #2
0
 public int showOptionDialog(
     Object message,
     String title,
     int optionType,
     int messageType,
     Icon icon,
     Object[] options,
     Object initialValue) {
   return JOptionPane.showOptionDialog(
       this.getFrame(), message, title, optionType, messageType, icon, options, initialValue);
 }
Exemple #3
0
 public void showMessageDialog(
     Component component, Object message, String title, int messageType, Object... args) {
   JOptionPane.showMessageDialog(
       component, formatMessage(null, message, args), title, messageType);
 }
Exemple #4
0
 public void showMessageDialog(
     Component component, Object message, String title, int messageType) {
   JOptionPane.showMessageDialog(component, message, title, messageType);
 }