CPanelPopup popup location

When the title bar buttons are close to the right side, any decent size popup will hang off the screen.

Here is a sample popup.

    final CPanelPopup action = new CPanelPopup();
    JPanel panel = new JPanel();
    panel.setPreferredSize(new Dimension(400, 300));
    action.setText("Sample Popup");
    action.setIcon(Resources.getIcon( "normalize" ));

I admit, I only used small popups and thus there never was a problem. I’ll fix it ASAP.