|
|
|
@ -51,13 +51,13 @@ public class CollectUserInformationDialog extends UIDialog {
|
|
|
|
|
String keyValue = CollectUserInformationDialog.this.getKey(); |
|
|
|
|
String message; |
|
|
|
|
if (ActiveKeyGenerator.verify(keyValue, ONLINE_VERIFY_TIMEOUT)) { |
|
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Activated_Successfully"); |
|
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Activate_Activated_Successfully"); |
|
|
|
|
JOptionPane.showMessageDialog(CollectUserInformationDialog.this, message); |
|
|
|
|
DesignerEnvManager.getEnvManager().setActivationKey(keyValue); |
|
|
|
|
DesignerEnvManager.getEnvManager().saveXMLFile(); |
|
|
|
|
doOK(); |
|
|
|
|
} else { |
|
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Activation_Code_Invalid"); |
|
|
|
|
message = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Activate_Activation_Code_Invalid"); |
|
|
|
|
JOptionPane.showMessageDialog(CollectUserInformationDialog.this, message); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -82,21 +82,21 @@ public class CollectUserInformationDialog extends UIDialog {
|
|
|
|
|
JPanel topPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
centPane.add(topPane, BorderLayout.NORTH); |
|
|
|
|
topPane.setBorder(BorderFactory.createTitledBorder(null, |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Enter_Your_FR_Activation_Code"), |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Activate_Enter_Your_FR_Activation_Code"), |
|
|
|
|
TitledBorder.LEADING, TitledBorder.TOP)); |
|
|
|
|
JPanel keyPane = new JPanel(new BorderLayout(4, 4)); |
|
|
|
|
keyPane.setBorder(BorderFactory.createEmptyBorder(32, 2, 32, 2)); |
|
|
|
|
topPane.add(keyPane); |
|
|
|
|
|
|
|
|
|
UILabel activateCodeLabel = new UILabel(); |
|
|
|
|
activateCodeLabel.setText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_FR_Activation_Code") + ":"); |
|
|
|
|
activateCodeLabel.setText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Activate_FR_Activation_Code") + ":"); |
|
|
|
|
keyPane.add(activateCodeLabel, BorderLayout.WEST); |
|
|
|
|
keyTextField = new UITextField(); |
|
|
|
|
keyPane.add(keyTextField, BorderLayout.CENTER); |
|
|
|
|
keyTextField.setMaximumSize(new Dimension(keyTextField.getPreferredSize().width, 25)); |
|
|
|
|
|
|
|
|
|
UIButton getKeyButton = new UIButton( |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Get_FR_Activation_Code")); |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Activate_Get_FR_Activation_Code")); |
|
|
|
|
getKeyButton.setMnemonic('F'); |
|
|
|
|
keyPane.add(getKeyButton, BorderLayout.EAST); |
|
|
|
|
getKeyButton.addActionListener(actionListener); |
|
|
|
@ -105,13 +105,13 @@ public class CollectUserInformationDialog extends UIDialog {
|
|
|
|
|
descriptionTextArea.setRows(5); |
|
|
|
|
descriptionTextArea.setBorder( |
|
|
|
|
BorderFactory.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Collect_Information_Description"))); |
|
|
|
|
descriptionTextArea.setText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_FR_Activation_Code_Description")); |
|
|
|
|
descriptionTextArea.setText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Activate_FR_Activation_Code_Description")); |
|
|
|
|
UIScrollPane scrollPane = new UIScrollPane(descriptionTextArea); |
|
|
|
|
scrollPane.setBorder(null); |
|
|
|
|
centPane.add(scrollPane, BorderLayout.CENTER); |
|
|
|
|
defaultPane.add(this.createControlButtonPane(), BorderLayout.SOUTH); |
|
|
|
|
|
|
|
|
|
this.setTitle(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Activate_Register_Product_For_Free")); |
|
|
|
|
this.setTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Activate_Register_Product_For_Free")); |
|
|
|
|
this.setSize(480, 300); |
|
|
|
|
this.setModal(true); |
|
|
|
|
GUICoreUtils.centerWindow(this); |
|
|
|
|