|
|
@ -56,6 +56,7 @@ public class CollectUserInformationDialog extends UIDialog { |
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Activated_Successfully"); |
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Activated_Successfully"); |
|
|
|
JOptionPane.showMessageDialog(CollectUserInformationDialog.this, message); |
|
|
|
JOptionPane.showMessageDialog(CollectUserInformationDialog.this, message); |
|
|
|
DesignerEnvManager.getEnvManager().setActivationKey(keyValue); |
|
|
|
DesignerEnvManager.getEnvManager().setActivationKey(keyValue); |
|
|
|
|
|
|
|
DesignerEnvManager.getEnvManager().saveXMLFile(); |
|
|
|
doOK(); |
|
|
|
doOK(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Activation_Code_Invalid"); |
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Activation_Code_Invalid"); |
|
|
@ -95,7 +96,6 @@ public class CollectUserInformationDialog extends UIDialog { |
|
|
|
keyTextField = new UITextField(); |
|
|
|
keyTextField = new UITextField(); |
|
|
|
keyPane.add(keyTextField, BorderLayout.CENTER); |
|
|
|
keyPane.add(keyTextField, BorderLayout.CENTER); |
|
|
|
keyTextField.setMaximumSize(new Dimension(keyTextField.getPreferredSize().width, 25)); |
|
|
|
keyTextField.setMaximumSize(new Dimension(keyTextField.getPreferredSize().width, 25)); |
|
|
|
macSystemHit(keyPane); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UIButton getKeyButton = new UIButton( |
|
|
|
UIButton getKeyButton = new UIButton( |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Get_FR_Activation_Code")); |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Get_FR_Activation_Code")); |
|
|
@ -119,15 +119,6 @@ public class CollectUserInformationDialog extends UIDialog { |
|
|
|
GUICoreUtils.centerWindow(this); |
|
|
|
GUICoreUtils.centerWindow(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void macSystemHit(JPanel keyPane) { |
|
|
|
|
|
|
|
if (OperatingSystem.isMacOS()) { |
|
|
|
|
|
|
|
UITextArea macHit = new UITextArea(); |
|
|
|
|
|
|
|
macHit.setText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Collect_OSXTips")); |
|
|
|
|
|
|
|
macHit.setEditable(false); |
|
|
|
|
|
|
|
keyPane.add(macHit, BorderLayout.SOUTH); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void applyClosingAction() { |
|
|
|
protected void applyClosingAction() { |
|
|
|
addWindowListener(new WindowAdapter() { |
|
|
|
addWindowListener(new WindowAdapter() { |
|
|
|