public void menuSelected(MenuEvent menuevent) { Point point = getLocationOnScreen(); arrowWindow.setLocation(point.x, point.y + getSize().height); arrowWindow.setVisible(true); arrowWindow.requestFocus(); arrowWindow.repaint(); }
public void menuDeselected(MenuEvent menuevent) { arrowWindow.setVisible(false); }
public void menuCanceled(MenuEvent menuevent) { arrowWindow.setVisible(false); }
public JMenuItem add(JMenuItem jmenuitem) { arrowWindow.add(jmenuitem); return jmenuitem; }