if (iconImage != null)
frame.setIconImage(iconImage);
}
// Ensure that window always remains minimized
frame.addWindowListener(new ChildWindowAdapter());
Rectangle bounds = frame.getGraphicsConfiguration().getBounds();
int width = (int)frame.getBounds().getWidth();
int height = frame.getInsets().top + frame.getInsets().bottom;
int x = (int)bounds.getWidth() - width;
int y = (int)bounds.getHeight() - height;