mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix exception
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ class ToolWindowsWidget extends JLabel implements CustomStatusBarWidget, StatusB
|
||||
@Override
|
||||
public boolean dispatch(AWTEvent e) {
|
||||
if (e instanceof MouseEvent) {
|
||||
if (e.getID() == MouseEvent.MOUSE_MOVED && isVisible()) {
|
||||
if (e.getID() == MouseEvent.MOUSE_MOVED && isShowing()) {
|
||||
Point p = ((MouseEvent)e).getLocationOnScreen();
|
||||
Point screen = ToolWindowsWidget.this.getLocationOnScreen();
|
||||
if (new Rectangle(screen.x - 4, screen.y - 2, getWidth() + 4, getHeight() + 4).contains(p)) {
|
||||
|
||||
Reference in New Issue
Block a user