467 handleEvent(e); 468 } 469 public void mouseExited(MouseEvent e) { 470 xtiPeer.tooltip.exit(); 471 handleEvent(e); 472 } 473 public void mousePressed(MouseEvent e) { 474 handleEvent(e); 475 } 476 public void mouseReleased(MouseEvent e) { 477 handleEvent(e); 478 } 479 public void mouseDragged(MouseEvent e) { 480 handleEvent(e); 481 } 482 public void mouseMoved(MouseEvent e) { 483 handleEvent(e); 484 } 485 } 486 487 static boolean isTrayIconStuffWindow(Window w) { 488 return (w instanceof InfoWindow.Tooltip) || 489 (w instanceof InfoWindow.Balloon) || 490 (w instanceof XTrayIconEmbeddedFrame); 491 } 492 493 // *************************************** 494 // Special embedded frame for tray icon 495 // *************************************** 496 497 private static class XTrayIconEmbeddedFrame extends XEmbeddedFrame { 498 public XTrayIconEmbeddedFrame(){ 499 super(XToolkit.getDefaultRootWindow(), true, true); 500 } 501 502 public boolean isUndecorated() { 503 return true; 504 } 505 506 public boolean isResizable() { 507 return false; 508 } 509 510 // embedded frame for tray icon shouldn't be disposed by anyone except tray icon 511 public void dispose(){ 512 } | 467 handleEvent(e); 468 } 469 public void mouseExited(MouseEvent e) { 470 xtiPeer.tooltip.exit(); 471 handleEvent(e); 472 } 473 public void mousePressed(MouseEvent e) { 474 handleEvent(e); 475 } 476 public void mouseReleased(MouseEvent e) { 477 handleEvent(e); 478 } 479 public void mouseDragged(MouseEvent e) { 480 handleEvent(e); 481 } 482 public void mouseMoved(MouseEvent e) { 483 handleEvent(e); 484 } 485 } 486 487 // *************************************** 488 // Special embedded frame for tray icon 489 // *************************************** 490 491 private static class XTrayIconEmbeddedFrame extends XEmbeddedFrame { 492 public XTrayIconEmbeddedFrame(){ 493 super(XToolkit.getDefaultRootWindow(), true, true); 494 } 495 496 public boolean isUndecorated() { 497 return true; 498 } 499 500 public boolean isResizable() { 501 return false; 502 } 503 504 // embedded frame for tray icon shouldn't be disposed by anyone except tray icon 505 public void dispose(){ 506 } |