} else { frameActions.show(frame.getDesktopPane(), event.getX(), event.getY());
} else { Point p = FrameWrapper.this.getLocationOnScreen(); int h = frameActions.getPreferredSize().height; frameActions.show(frame.getDesktopPane(), p.x, p.y - h);
                    public void mousePressed(MouseEvent event) {                        if(event.getButton() == MouseEvent.BUTTON2){                            if (frameActions .isShowing()) {                                frameActions .setVisible(false);                            } else {                                                                frameActions.show(frame.getDesktopPane(), event.getX(), event.getY());                            }                        }                    }