368 return true; 369 } 370 371 @Override 372 public final KeyboardFocusManagerPeer getKeyboardFocusManagerPeer() { 373 return LWKeyboardFocusManagerPeer.getInstance(); 374 } 375 376 @Override 377 public final synchronized MouseInfoPeer getMouseInfoPeer() { 378 if (mouseInfoPeer == null) { 379 mouseInfoPeer = createMouseInfoPeerImpl(); 380 } 381 return mouseInfoPeer; 382 } 383 384 protected final MouseInfoPeer createMouseInfoPeerImpl() { 385 return new LWMouseInfoPeer(); 386 } 387 388 @Override 389 public final PrintJob getPrintJob(Frame frame, String doctitle, 390 Properties props) { 391 return getPrintJob(frame, doctitle, null, null); 392 } 393 394 @Override 395 public final PrintJob getPrintJob(Frame frame, String doctitle, 396 JobAttributes jobAttributes, 397 PageAttributes pageAttributes) { 398 if (GraphicsEnvironment.isHeadless()) { 399 throw new IllegalArgumentException(); 400 } 401 402 PrintJob2D printJob = new PrintJob2D(frame, doctitle, jobAttributes, pageAttributes); 403 404 if (!printJob.printDialog()) { 405 printJob = null; 406 } 407 | 368 return true; 369 } 370 371 @Override 372 public final KeyboardFocusManagerPeer getKeyboardFocusManagerPeer() { 373 return LWKeyboardFocusManagerPeer.getInstance(); 374 } 375 376 @Override 377 public final synchronized MouseInfoPeer getMouseInfoPeer() { 378 if (mouseInfoPeer == null) { 379 mouseInfoPeer = createMouseInfoPeerImpl(); 380 } 381 return mouseInfoPeer; 382 } 383 384 protected final MouseInfoPeer createMouseInfoPeerImpl() { 385 return new LWMouseInfoPeer(); 386 } 387 388 protected abstract PlatformWindow getPlatformWindowUnderMouse(); 389 390 @Override 391 public final PrintJob getPrintJob(Frame frame, String doctitle, 392 Properties props) { 393 return getPrintJob(frame, doctitle, null, null); 394 } 395 396 @Override 397 public final PrintJob getPrintJob(Frame frame, String doctitle, 398 JobAttributes jobAttributes, 399 PageAttributes pageAttributes) { 400 if (GraphicsEnvironment.isHeadless()) { 401 throw new IllegalArgumentException(); 402 } 403 404 PrintJob2D printJob = new PrintJob2D(frame, doctitle, jobAttributes, pageAttributes); 405 406 if (!printJob.printDialog()) { 407 printJob = null; 408 } 409 |