This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
InsertRecordDialog dialog = new InsertRecordDialog(dataView);
dialog.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
dialog.setMinimumSize(new Dimension((screenSize.width - 50) / 2, (screenSize.height - 50) / 2));
dialog.setVisible(true);
}