mCloseButton.addActionListener(this);
mDialog.getRootPane().setDefaultButton(mCloseButton);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Window vaterWindow = mDialog.getOwner();
Point vaterLocation = vaterWindow.getLocation();
Dimension vaterSize = vaterWindow.getSize();
// Preferred
Point hilfeLocation = new Point(vaterLocation.x + vaterSize.width, vaterLocation.y);
Dimension hilfeSize = new Dimension(screenSize.width - hilfeLocation.x, vaterSize.height);
// check if size is OK
if (hilfeSize.width < MIN_HELP_DIALOG_SIZE.width) {
hilfeSize.width = MIN_HELP_DIALOG_SIZE.width;