*/
public PageFormat pageDialog(PrintRequestAttributeSet arg_attrs)
throws HeadlessException {
if (GraphicsEnvironment.isHeadless()) {
throw new HeadlessException();
} else if (arg_attrs == null) {
throw new NullPointerException();
} else if (getPrintService() == null) {
JOptionPane.showMessageDialog(KeyboardFocusManager
.getCurrentKeyboardFocusManager().getActiveWindow(),