Index: ide/launcher/upgrade/src/org/netbeans/license/AcceptLicense.java =================================================================== RCS file: /cvs/ide/launcher/upgrade/src/org/netbeans/license/AcceptLicense.java,v retrieving revision 1.5 diff -c -r1.5 AcceptLicense.java *** ide/launcher/upgrade/src/org/netbeans/license/AcceptLicense.java 23 Sep 2005 14:43:35 -0000 1.5 --- ide/launcher/upgrade/src/org/netbeans/license/AcceptLicense.java 19 Oct 2005 12:44:51 -0000 *************** *** 40,45 **** --- 40,46 ---- public final class AcceptLicense { private static JDialog d; + private static Frame frame; private static String command; /** If License was not accepted during installation user must accept it here. *************** *** 59,64 **** --- 60,68 ---- public void actionPerformed (ActionEvent e) { command = e.getActionCommand(); d.setVisible(false); + d = null; + frame.setVisible(false); + frame = null; } }; yesButton.addActionListener(listener); *************** *** 79,86 **** int maxHeight = Math.max(yesButton.getPreferredSize().height, noButton.getPreferredSize().height); yesButton.setPreferredSize(new Dimension(maxWidth, maxHeight)); noButton.setPreferredSize(new Dimension(maxWidth, maxHeight)); ! ! d = new JDialog((Frame) null,bundle.getString("MSG_LicenseDlgTitle"),true); d.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_LicenseDlg")); d.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_LicenseDlg")); --- 83,91 ---- int maxHeight = Math.max(yesButton.getPreferredSize().height, noButton.getPreferredSize().height); yesButton.setPreferredSize(new Dimension(maxWidth, maxHeight)); noButton.setPreferredSize(new Dimension(maxWidth, maxHeight)); ! ! frame = new Frame(bundle.getString("MSG_LicenseDlgTitle")); ! d = new JDialog(frame,bundle.getString("MSG_LicenseDlgTitle"),true); d.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_LicenseDlg")); d.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_LicenseDlg")); *************** *** 98,103 **** --- 103,113 ---- d.setResizable(true); //Center on screen d.setLocationRelativeTo(null); + + frame.setBounds(0,0,0,0); + frame.setResizable(false); + frame.setVisible(true); + d.setVisible(true); if ("yes".equals(command)) { // NOI18N