1 2 package org.xrn.gui; 3 4 import javax.swing.JOptionPane; 5 6 public class MessageWindow extends JOptionPane 7 { 8 public static void fehler( String s ) 9 { 10 JOptionPane.showMessageDialog( null, s, 11 "SPSTool: Error", 12 JOptionPane.ERROR_MESSAGE ); 13 } 14 15 public static void mitteilung( String s ) 16 { 17 JOptionPane.showMessageDialog( null, s, 18 "XMLReleaseNotes", 19 JOptionPane.INFORMATION_MESSAGE ); 20 21 } 22 23 public static void warnung( String s ) 24 { 25 JOptionPane.showMessageDialog( null, s, 26 "XMLReleaseNotes: Warning", 27 JOptionPane.WARNING_MESSAGE ); 28 } 29 30 public static int bestaetigung( String s ) 31 { 32 return JOptionPane.showConfirmDialog( null, s, 33 "XMLReleaseNotes", 34 JOptionPane.YES_NO_OPTION ); 35 } 36 }