void (<error descr="Cannot resolve symbol 'AWTEvent'">AWTEvent</error> e) { int id = e.<error descr="Cannot resolve method 'getID()'">getID</error>(); if ((id >= <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_FIRST) && (id <= <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_LAST)) { <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error> me = (<error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>) e; int x = me.<error descr="Cannot resolve method 'getX()'">getX</error>(); int y = me.<error descr="Cannot resolve method 'getY()'">getY</error>(); int clickcount = me.<error descr="Cannot resolve method 'getClickCount()'">getClickCount</error>(); boolean shiftdown = me.<error descr="Cannot resolve method 'isShiftDown()'">isShiftDown</error>(); boolean controldown = me.<error descr="Cannot resolve method 'isControlDown()'">isControlDown</error>(); boolean popuptrigger = me.<error descr="Cannot resolve method 'isPopupTrigger()'">isPopupTrigger</error>(); if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) { if (mousepressed == null) { findComponent(content, x, y); handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED, mouseinside, insidepart); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_MOVED) { Object previnside = mouseinside; Object prevpart = insidepart; findComponent(content, x, y); if ((previnside == mouseinside) && (prevpart == insidepart)) { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_MOVED, mouseinside, insidepart); } else { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED, previnside, prevpart); handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED, mouseinside, insidepart); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) { if (mousepressed == null) { Object mouseexit = mouseinside; Object exitpart = insidepart; mouseinside = insidepart = null; handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED, mouseexit, exitpart); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { if (popupowner != null) { String classname = getClass(mouseinside); if ((popupowner != mouseinside) && (classname != "popupmenu") && (classname != "combolist")) { closeup(); } } mousepressed = mouseinside; pressedpart = insidepart; handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED, mousepressed, pressedpart); } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) { Object previnside = mouseinside; Object prevpart = insidepart; findComponent(content, x, y); boolean same = (previnside == mouseinside) && (prevpart == insidepart); boolean isin = (mousepressed == mouseinside) && (pressedpart == insidepart); boolean wasin = (mousepressed == previnside) && (pressedpart == prevpart); if (wasin && !isin) { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED, mousepressed, pressedpart); } else if (!same && (popupowner != null) && !wasin) { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, DRAG_EXITED, previnside, prevpart); } if (isin && !wasin) { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED, mousepressed, pressedpart); } else if (!same && (popupowner != null) && !isin) { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, DRAG_ENTERED, mouseinside, insidepart); } if (isin == wasin) { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED, mousepressed, pressedpart); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { Object mouserelease = mousepressed; Object releasepart = pressedpart; mousepressed = pressedpart = null; handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED, mouserelease, releasepart); if ((mouseinside != null) && ((mouserelease != mouseinside) || (releasepart != insidepart))) { handleMouseEvent(x, y, clickcount, shiftdown, controldown, popuptrigger, <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED, mouseinside, insidepart); } } } else if (id == MOUSE_WHEEL) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> port = getRectangle(mouseinside, ":port"); if (port != null) { // is scrollable <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> bounds = getRectangle(mouseinside, "bounds"); try { // mouse wheel is supported since 1.4 thus it use reflection if (wheelrotation == null) { wheelrotation = e.<error descr="Cannot resolve method 'getClass()'">getClass</error>().getMethod("getWheelRotation", null); } int rotation = ((Integer) wheelrotation.<error descr="Cannot resolve method 'invoke(AWTEvent, null)'">invoke</error>(e, null)).intValue(); if (port.<error descr="Cannot resolve symbol 'x'">x</error> + port.<error descr="Cannot resolve symbol 'width'">width</error> < bounds.<error descr="Cannot resolve symbol 'width'">width</error>) { // has vertical scrollbar processScroll(mouseinside, (rotation > 0) ? "down" : "up"); } else if (port.<error descr="Cannot resolve symbol 'y'">y</error> + port.<error descr="Cannot resolve symbol 'height'">height</error> < bounds.<error descr="Cannot resolve symbol 'height'">height</error>) { // has horizontal scrollbar processScroll(mouseinside, (rotation > 0) ? "right" : "left"); } } catch (Exception exc) { /* never */ } } } else if ((id == <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>.KEY_PRESSED) || (id == <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>.KEY_TYPED)) { if (focusinside && ((popupowner != null) || (focusowner != null))) { hideTip(); <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error> ke = (<error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>) e; int keychar = ke.<error descr="Cannot resolve method 'getKeyChar()'">getKeyChar</error>(); boolean control = (keychar <= 0x1f) || ((keychar >= 0x7f) && (keychar <= 0x9f)) || (keychar >= 0xffff) || ke.<error descr="Cannot resolve method 'isControlDown()'">isControlDown</error>(); if (control == (id == <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>.KEY_PRESSED)) { int keycode = control ? ke.<error descr="Cannot resolve method 'getKeyCode()'">getKeyCode</error>() : 0; if (!processKeyPress((popupowner != null) ? popupowner : focusowner, ke.<error descr="Cannot resolve method 'isShiftDown()'">isShiftDown</error>(), ke.<error descr="Cannot resolve method 'isControlDown()'">isControlDown</error>(), ke.<error descr="Cannot resolve method 'getModifiers()'">getModifiers</error>(), control ? 0 : keychar, keycode)) { if ((keycode == <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>.VK_TAB) || ((keycode == <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>.VK_F6) && (ke.<error descr="Cannot resolve method 'isAltDown()'">isAltDown</error>() || ke.<error descr="Cannot resolve method 'isControlDown()'">isControlDown</error>()))) { boolean outgo = (keycode == <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>.VK_F6); if (!ke.<error descr="Cannot resolve method 'isShiftDown()'">isShiftDown</error>() ? setNextFocusable(focusowner, outgo) : setPreviousFocusable(focusowner, outgo)) { ke.<error descr="Cannot resolve method 'consume()'">consume</error>(); } else if (MOUSE_WHEEL != 0) { // 1.4 if (!ke.<error descr="Cannot resolve method 'isShiftDown()'">isShiftDown</error>()) { transferFocus(); } else { try { getClass().getMethod("transferFocusBackward", null). <error descr="Cannot resolve method 'invoke(Thinlet, null)'">invoke</error>(this, null); } catch (Exception exc) { /* never */ } } } repaint(focusowner); closeup(); } else if (keycode == <error descr="Cannot resolve symbol 'KeyEvent'">KeyEvent</error>.VK_F8) { for (Object splitpane = focusowner; splitpane != null; splitpane = getParent(splitpane)) { if (getClass(splitpane) == "splitpane") { setFocus(splitpane); repaint(splitpane); break; //middle } } } } else ke.<error descr="Cannot resolve method 'consume()'">consume</error>(); /*else if (keycode == KeyEvent.VK_F10) { Object menubar = null; // find("class", "menubar") if ((menubar != null) && (get(menubar, "selected") == null)) { set(menubar, "selected", getMenu(menubar, null, true, false)); Object popup = popup(menubar, "menubar"); set(popup, "selected", getMenu(popup, null, true, true)); repaint(menubar); // , selected } }*/ } } } /*else if (id == KeyEvent.KEY_RELEASED) { if (focusinside && (focusowner != null)) { KeyEvent ke = (KeyEvent) e; //pressedkey = 0; processKeyRelease(focusowner, ke, ke.getKeyCode()); } }*/ else if (id == <error descr="Cannot resolve symbol 'FocusEvent'">FocusEvent</error>.FOCUS_LOST) { focusinside = false; if (focusowner != null) { repaint(focusowner); } closeup(); } else if (id == <error descr="Cannot resolve symbol 'FocusEvent'">FocusEvent</error>.FOCUS_GAINED) { focusinside = true; if (focusowner == null) { setFocus(content); } else { repaint(focusowner); } } else if ((id == <error descr="Cannot resolve symbol 'ComponentEvent'">ComponentEvent</error>.COMPONENT_RESIZED) || (id == <error descr="Cannot resolve symbol 'ComponentEvent'">ComponentEvent</error>.COMPONENT_SHOWN)) { Dimension d = getSize(); //System.out.println(id + ": " + d.width + ", " + d.height); setRectangle(content, "bounds", 0, 0, d.width, d.height); validate(content); closeup(); if (!focusinside) { requestFocus(); } } }