public static void showNoPrintService(GraphicsConfiguration gc){
  Frame dlgFrame=new Frame(gc);
  JOptionPane.showMessageDialog(dlgFrame,getMsg("dialog.noprintermsg"));
  dlgFrame.dispose();
}

public static void showNoPrintService ( GraphicsConfiguration gc ) { Frame dlgFrame = new Frame ( gc ) ; JOptionPane . showMessageDialog ( dlgFrame , getMsg ( "dialog.noprintermsg" ) ) ; dlgFrame . dispose ( ) ; }
creates a pop - up dialog for " no print service "
