final JavaEnvDialog javaInformationDialog = new JavaEnvDialog(getFrame(), true);
javaInformationDialog.addWindowListener(new java.awt.event.WindowAdapter() {
@Override
public void windowOpened(WindowEvent e) {
JavaInformationObject javaOjb =
JavaInformation.getJavaInformation();
javaInformationDialog.setJavaHomeTextField(javaOjb.getJavaHome());
javaInformationDialog.setJavaVMVendorTextField(javaOjb.getJvmVendor());
javaInformationDialog.setJavaVersionTextField(javaOjb.getJvmVersion());
}
});
XYCoord xyp = CalcDialogCenter.getDialogCenterLocation(getFrame(), javaInformationDialog);
javaInformationDialog.setLocation(xyp.getX(), xyp.getY());