public void menuSelected(MenuEvent menuevent) { Point point = getLocationOnScreen(); arrowWindow.setLocation(point.x, point.y + getSize().height); arrowWindow.setVisible(true); arrowWindow.requestFocus(); arrowWindow.repaint(); }