Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed mysql installation

  • Loading branch information...
commit 63f6ad659c17424947056800eafa5263a0f5feb7 1 parent 1142d0a
@anti43 authored
View
BIN  lib/mysql-connector-java-5.0.8-bin.jar
Binary file not shown
View
BIN  lib/mysql-connector-java-5.1.14-bin.jar
Binary file not shown
View
BIN  lib/mysql-connector-java-5.1.23-bin.jar
Binary file not shown
View
11 nbproject/project.properties
@@ -1,5 +1,6 @@
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
+annotation.processing.processors.list=
annotation.processing.run.all.processors=true
ant.customtasks.libs=JWSAntTasks
application.desc=Yet another business software
@@ -39,7 +40,6 @@ file.reference.derbyclient.jar=lib/derbyclient.jar
file.reference.derbynet.jar=lib/derbynet.jar
file.reference.DTAus.jar=lib/DTAus.jar
file.reference.frame4j.jar=lib/frame4j.jar
-file.reference.google-api-translate-java-0.92.jar=lib/google-api-translate-java-0.92.jar
file.reference.groovy-all-1.8.4.jar=lib/groovy-all-1.8.4.jar
file.reference.httpcore-4.0.1.jar=lib/httpcore-4.0.1.jar
file.reference.httpcore-nio-4.0.1.jar=lib/httpcore-nio-4.0.1.jar
@@ -56,8 +56,9 @@ file.reference.jut.jar=lib/ooo/jut.jar
file.reference.l2fprod-common-all.jar=lib/l2fprod-common-all.jar
file.reference.mail.jar=lib/mail.jar
file.reference.microba-0.4.4.2.jar=lib/microba-0.4.4.2.jar
+file.reference.microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar=lib/microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar
file.reference.MPCalendar.jar=lib/MPCalendar.jar
-file.reference.mysql-connector-java-5.1.14-bin.jar=lib/mysql-connector-java-5.1.14-bin.jar
+file.reference.mysql-connector-java-5.1.23-bin.jar=lib/mysql-connector-java-5.1.23-bin.jar
file.reference.nativeunix.zip=lib/ooo/nativeunix.zip
file.reference.noa-libre.jar=lib/noa-libre.jar
file.reference.officebean.jar=lib/ooo/officebean.jar
@@ -100,16 +101,16 @@ javac.classpath=\
${file.reference.microba-0.4.4.2.jar}:\
${file.reference.ybsaf.jar}:\
${file.reference.iText-2.1.7.jar}:\
- ${file.reference.mysql-connector-java-5.1.14-bin.jar}:\
${file.reference.ws-commons-util-1.0.2.jar}:\
+ ${file.reference.mysql-connector-java-5.1.23-bin.jar}:\
${file.reference.commons-logging-1.1.jar}:\
${file.reference.httpcore-4.0.1.jar}:\
${file.reference.httpcore-nio-4.0.1.jar}:\
${file.reference.commons-codec-1.3.jar}:\
${file.reference.vcard4j-1_1_3.jar}:\
${file.reference.derbyclient.jar}:\
- ${file.reference.google-api-translate-java-0.92.jar}:\
${file.reference.DTAus.jar}:\
+ ${file.reference.microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar}:\
${file.reference.bcprov-jdk16-145.jar}:\
${file.reference.PDFRenderer.jar}:\
${file.reference.derbynet.jar}:\
@@ -178,7 +179,7 @@ jnlp.mixed.code=default
jnlp.offline-allowed=true
jnlp.signed=true
jnlp.signing=generated
-jnlp.signing.alias=
+jnlp.signing.alias=openyabs
jnlp.signing.keystore=
main.class=mpv5.Main
manifest.file=manifest.mf
View
30 src/mpv5/db/common/DatabaseConnection.java
@@ -111,7 +111,7 @@ public boolean connect(String predefinedDriver, String user, String password, St
DriverManager.registerDriver((Driver) Class.forName(getCtype().getDriver()).newInstance());
Log.Debug(this, "Driver: " + getCtype().getDriver());
} catch (Exception ex) {
- Log.Debug(this, ex.getMessage());
+ Log.Debug(this, ex);
}
return reconnect(create);
@@ -126,35 +126,35 @@ public boolean reconnect(boolean create) throws SQLException {
try {
Log.Debug(this, "RECONNECT::Datenbankverbindung: " + getCtype().getConnectionString(create));
conn = DriverManager.getConnection(getCtype().getConnectionString(create), user, password);
- conn.setAutoCommit(true);
+ boolean result = true;
if (conn != null //&& conn.isValid(10)//does not work with MySQL Connector/J 5.0
- ) {//mysql (and others) need explicit create database, derby does it by itself
+ ) {//mysql (and others) need explicit create database, derby does it by itself
+ conn.setAutoCommit(true);
if (create && ConnectionTypeHandler.getDriverType() != ConnectionTypeHandler.DERBY) {
stmt = conn.createStatement();
- conn.setCatalog(ConnectionTypeHandler.getDBNAME());
if (User.PROPERTIES_OVERRIDE.hasProperty("drop_database_on_create")) {
try {
sql = "DROP DATABASE "
- + ConnectionTypeHandler.getDBNAME()
- + ";";
+ + ConnectionTypeHandler.getDBNAME()
+ + ";";
stmt.execute(sql);
} catch (SQLException ex) {
- Log.Debug(this, "Database Error Cleaing of old DB failed!");
+ Log.Debug(this, "Database Error cleaning of old DB failed!");
}
}
try {
sql = "CREATE DATABASE "
- + ConnectionTypeHandler.getDBNAME()
- + " ;";
+ + ConnectionTypeHandler.getDBNAME()
+ + " ;";
stmt.execute(sql);
} catch (SQLException ex) {
- Popup.OK_dialog(Messages.CREATE_DATABASE_OWN.toString(), "Database Creation");
- return false;
+ Log.Debug(ex);
+ result = Popup.OK_dialog("Could not create database " + ConnectionTypeHandler.getDBNAME() + ", did you already create it?", "Database Creation");
}
-
}
+ conn.setCatalog(ConnectionTypeHandler.getDBNAME());
connector = this;
- return true;
+ return result;
} else {
throw new RuntimeException("Could not create connection: " + getCtype().getConnectionString(create));
}
@@ -209,7 +209,7 @@ public static void shutdown() {
if (ConnectionTypeHandler.getDriverType() == ConnectionTypeHandler.DERBY) {
try {
DriverManager.getConnection(
- DatabaseConnection.instanceOf().getCtype().getConnectionString(false) + "shutdown=true;", user, password);
+ DatabaseConnection.instanceOf().getCtype().getConnectionString(false) + "shutdown=true;", user, password);
} catch (Exception ex) {
Log.Debug(DatabaseConnection.class, ex.getLocalizedMessage());
}
@@ -262,7 +262,7 @@ public boolean runQueries(String[] queries) throws SQLException {
}
return true;
} catch (Exception sQLException) {
- Log.Debug(this, sQLException.getMessage());
+ Log.Debug(this, "-----------> "+sQLException.getMessage());
return false;
} finally {
if (prog != null) {
View
4 src/mpv5/resources/languages/Panels.properties
@@ -19,7 +19,6 @@ wizard_DBSettings_1.jPanel1.border.title=OpenOffice 3
wizard_DBSettings_1.jPanel2.border.title=Database
wizard_DBSettings_2.jPanel1.border.title=Finish
wizard_DBSettings_3.jLabel1.text=jLabel1
-wizard_DBSettings_1.jPanel3.border.title=Information
ContactsList.jPanel1.border.title=Contacts List
ContactsList.jCheckBox1.text=Customers
ContactsList.jLabel1.text=Show:
@@ -230,7 +229,6 @@ AddressPanel.jButton1.toolTipText=Remove
JournalPanel.jPanel1.border.title=Journal
ContactPanel.jButton2.text=History
wizard_DBSettings_1.labeledTextField3._Label=Database
-wizard_DBSettings_1.jCheckBox1.text=Use existing data (do upgrade)
ControlPanel_Accounts.classv._Label=Class
MPBabelFish.jMenuItem4.text=Open language file..
ControlPanel_Local.jPanel4.border.title=Database settings
@@ -1153,7 +1151,6 @@ wizard_DBSettings_simple_1.labeledTextField2._Label=Port
wizard_DBSettings_simple_1.border.title=Specify initial settings
wizard_DBSettings_simple_1.jPanel1.border.title=OpenOffice 3
wizard_DBSettings_simple_1.jTextArea1.text=This will install a local database into your home directory. \nIf you need to change the location or or want to use a dedicated database server please click on "Advanced".\n\nYou can configure the OpenOffice connection later within the YaBS control panel.
-wizard_DBSettings_1.jTextArea1.text=This will install a local database into your home directory. \nIf you need to change the location or or want to use a dedicated database server please click on "Advanced".\n\nYou can configure the OpenOffice connection later within the YaBS control panel.
wizard_DBSettings_simple_1.jPanel3.border.title=Information
wizard_DBSettings_simple_1.jButton1.text=Advanced..
ContactsList.jButton1.text=Customer
@@ -2059,3 +2056,4 @@ ControlPanel_Userproperties.noblank.text=Do not blank unused fields
ControlPanel_Userproperties.remoteurl.text=Load remote office docs by url
ControlPanel_Userproperties.resolv.text=Resolve full products in xtable
ControlPanel_Userproperties.nocount.text=Hide count for text items
+wizard_DBSettings_1.existingData.text=Use existing data (do upgrade)
View
174 src/mpv5/ui/dialogs/subcomponents/wizard_DBSettings_1.form
@@ -1,4 +1,4 @@
-<?xml version="1.1" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.6" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
@@ -25,7 +25,7 @@
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,-101,0,0,2,-64"/>
+ <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-4,0,0,2,124"/>
</AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
@@ -50,46 +50,49 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
- <Component id="jPanel5" alignment="1" max="32767" attributes="1"/>
- <Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
- <Group type="102" attributes="0">
- <Component id="jLabel1" min="-2" pref="183" max="-2" attributes="0"/>
- <EmptySpace min="4" pref="4" max="4" attributes="0"/>
- <Component id="jComboBox1" min="-2" pref="352" max="-2" attributes="0"/>
- <EmptySpace min="10" pref="10" max="10" attributes="0"/>
- <Component id="jButton1" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="102" attributes="0">
- <Component id="jLabel2" min="-2" pref="183" max="-2" attributes="0"/>
- <EmptySpace min="4" pref="4" max="4" attributes="0"/>
- <Component id="jCheckBox2" min="-2" pref="415" max="-2" attributes="0"/>
- </Group>
- <Component id="labeledTextChooser1" alignment="1" pref="602" max="32767" attributes="1"/>
- <Component id="jCheckBox1" alignment="0" min="-2" pref="286" max="-2" attributes="0"/>
- <Component id="labeledTextField3" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <Component id="prefix" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="separate" max="-2" attributes="0"/>
- <Component id="jButton3" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="separate" max="-2" attributes="0"/>
- <Component id="jLabel4" min="-2" max="-2" attributes="0"/>
+ <Group type="102" attributes="0">
+ <Group type="103" groupAlignment="0" max="-2" attributes="0">
+ <Group type="102" attributes="0">
+ <Component id="jLabel1" min="-2" pref="183" max="-2" attributes="0"/>
+ <EmptySpace min="4" pref="4" max="4" attributes="0"/>
+ <Component id="jComboBox1" min="-2" pref="352" max="-2" attributes="0"/>
+ <EmptySpace min="10" pref="10" max="10" attributes="0"/>
+ <Component id="jButton1" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Group type="102" attributes="0">
+ <Component id="jLabel2" min="-2" pref="183" max="-2" attributes="0"/>
+ <EmptySpace min="4" pref="4" max="4" attributes="0"/>
+ <Component id="jCheckBox2" min="-2" pref="415" max="-2" attributes="0"/>
+ </Group>
+ <Component id="labeledTextChooser1" alignment="1" max="32767" attributes="1"/>
+ <Component id="existingData" alignment="0" min="-2" pref="286" max="-2" attributes="0"/>
+ <Component id="labeledTextField3" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Group type="102" alignment="0" attributes="0">
+ <Component id="prefix" min="-2" max="-2" attributes="0"/>
+ <EmptySpace type="separate" max="-2" attributes="0"/>
+ <Component id="jButton3" min="-2" max="-2" attributes="0"/>
+ <EmptySpace type="separate" max="-2" attributes="0"/>
+ <Component id="jLabel4" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Component id="jPanel4" alignment="1" max="32767" attributes="1"/>
</Group>
- <Component id="jPanel4" alignment="1" pref="602" max="32767" attributes="1"/>
+ <EmptySpace max="32767" attributes="0"/>
</Group>
+ <Component id="jPanel5" max="32767" attributes="1"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="103" groupAlignment="0" max="-2" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="4" pref="4" max="4" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
</Group>
- <Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
- <Component id="jButton1" min="-2" max="-2" attributes="0"/>
+ <Component id="jComboBox1" max="32767" attributes="0"/>
+ <Component id="jButton1" alignment="0" pref="0" max="32767" attributes="0"/>
</Group>
- <EmptySpace min="2" pref="2" max="2" attributes="0"/>
+ <EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="6" pref="6" max="6" attributes="0"/>
@@ -100,7 +103,7 @@
<EmptySpace min="7" pref="7" max="7" attributes="0"/>
<Component id="labeledTextChooser1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="jCheckBox1" min="-2" max="-2" attributes="0"/>
+ <Component id="existingData" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Group type="102" attributes="0">
@@ -117,7 +120,7 @@
<Component id="jPanel4" min="-2" pref="61" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jPanel5" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -154,12 +157,12 @@
<Property name="name" type="java.lang.String" value="labeledTextField3" noResource="true"/>
</Properties>
</Component>
- <Component class="javax.swing.JCheckBox" name="jCheckBox1">
+ <Component class="javax.swing.JCheckBox" name="existingData">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="wizard_DBSettings_1.jCheckBox1.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="wizard_DBSettings_1.existingData.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
</Property>
- <Property name="name" type="java.lang.String" value="jCheckBox1" noResource="true"/>
+ <Property name="name" type="java.lang.String" value="existingData" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel2">
@@ -299,38 +302,33 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
+ <Component id="backupDBName" alignment="0" max="32767" attributes="1"/>
+ <Component id="DumpName" alignment="0" max="32767" attributes="1"/>
<Group type="102" alignment="0" attributes="0">
- <Component id="restore" min="-2" max="-2" attributes="0"/>
+ <Component id="jLabel5" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <Component id="jLabel5" min="-2" pref="109" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="1" attributes="0">
- <Component id="DumpURL" pref="645" max="32767" attributes="1"/>
+ <Component id="DumpURL" min="-2" pref="434" max="-2" attributes="1"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="DumpURLBtn" min="-2" pref="17" max="-2" attributes="0"/>
</Group>
- <Component id="backupDBName" alignment="0" pref="668" max="32767" attributes="1"/>
- <Component id="DumpName" alignment="0" pref="668" max="32767" attributes="1"/>
+ <Component id="restore" alignment="0" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="restore" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
- <Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="DumpURL" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="DumpURLBtn" alignment="3" min="-2" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="2" attributes="0">
+ <Component id="DumpURL" alignment="2" min="-2" max="-2" attributes="0"/>
+ <Component id="DumpURLBtn" alignment="2" min="-2" max="-2" attributes="0"/>
+ <Component id="jLabel5" alignment="2" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="backupDBName" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="9" max="32767" attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
<Component id="DumpName" min="-2" max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -421,11 +419,11 @@
<Group type="102" attributes="0">
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
- <Component id="labeledTextChooser2" pref="660" max="32767" attributes="0"/>
+ <Component id="labeledTextChooser2" pref="592" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<Component id="jCheckBox3" min="-2" pref="130" max="-2" attributes="1"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="labeledTextField1" pref="361" max="32767" attributes="1"/>
+ <Component id="labeledTextField1" pref="293" max="32767" attributes="1"/>
<EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/>
<Component id="labeledTextField2" min="-2" pref="157" max="-2" attributes="2"/>
</Group>
@@ -503,75 +501,5 @@
</Component>
</SubComponents>
</Container>
- <Container class="javax.swing.JPanel" name="jPanel3">
- <Properties>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
- <TitledBorder title="Information">
- <ResourceString PropertyName="titleX" bundle="mpv5/resources/languages/Panels.properties" key="wizard_DBSettings_1.jPanel3.border.title" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
- </TitledBorder>
- </Border>
- </Property>
- <Property name="name" type="java.lang.String" value="jPanel3" noResource="true"/>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
- <BorderConstraints direction="South"/>
- </Constraint>
- </Constraints>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="jScrollPane1" alignment="0" pref="680" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="jScrollPane1" min="-2" max="-2" attributes="0"/>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Container class="javax.swing.JScrollPane" name="jScrollPane1">
- <Properties>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
- <EmptyBorder/>
- </Border>
- </Property>
- <Property name="horizontalScrollBarPolicy" type="int" value="31"/>
- <Property name="verticalScrollBarPolicy" type="int" value="21"/>
- <Property name="name" type="java.lang.String" value="jScrollPane1" noResource="true"/>
- </Properties>
- <AuxValues>
- <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
- </AuxValues>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
- <SubComponents>
- <Component class="javax.swing.JTextArea" name="jTextArea1">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="d8" green="e9" red="ec" type="rgb"/>
- </Property>
- <Property name="columns" type="int" value="20"/>
- <Property name="editable" type="boolean" value="false"/>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Tahoma" size="12" style="0"/>
- </Property>
- <Property name="lineWrap" type="boolean" value="true"/>
- <Property name="rows" type="int" value="5"/>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="wizard_DBSettings_1.jTextArea1.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
- </Property>
- <Property name="wrapStyleWord" type="boolean" value="true"/>
- <Property name="name" type="java.lang.String" value="jTextArea1" noResource="true"/>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
</SubComponents>
</Form>
View
1,171 src/mpv5/ui/dialogs/subcomponents/wizard_DBSettings_1.java
@@ -27,643 +27,608 @@
/**
*
- *
+ *
*/
public class wizard_DBSettings_1 extends javax.swing.JPanel implements Wizardable {
- private static final long serialVersionUID = 1L;
- private WizardMaster master;
- private Integer forConnId = null;
-
- public wizard_DBSettings_1(Wizard w, Integer forConnId) {
- this.master = w;
- initComponents();
- labeledTextChooser2.setMode(JFileChooser.DIRECTORIES_ONLY);
- jComboBox1.setModel(new DefaultComboBoxModel(ConnectionTypeHandler.DRIVERS));
- this.forConnId = forConnId;
- load();
- }
-
- private boolean DBVerification() {
- DatabaseConnection conn;
- this.master.setCursor(new Cursor(Cursor.WAIT_CURSOR));
-
- if (labeledTextChooser1.get_Text(false) != null && labeledTextChooser1.get_Text(false).length() > 0) {
- master.getStore().changeProperty("driver", jComboBox1.getSelectedItem().toString());
- master.getStore().changeProperty("url", labeledTextChooser1.get_Text(false));
- master.getStore().changeProperty("user", labeledTextField4.get_Text());
- master.getStore().changeProperty("password", labeledTextField5.get_Text());
- master.getStore().changeProperty("dbname", labeledTextField3.get_Text());
- master.getStore().changeProperty("dbprefix", prefix.get_Text());
- master.setMessage(Messages.CONNECTION_PROBE + master.getStore().getProperty("driver"));
- conn = new DatabaseConnection();
- try {
- LocalSettings.setProperty(LocalSettings.DBPATH, master.getStore().getProperty("url"));
- LocalSettings.setProperty(LocalSettings.DBDRIVER, master.getStore().getProperty("driver"));
- LocalSettings.setProperty(LocalSettings.DBUSER, master.getStore().getProperty("user"));
- LocalSettings.setProperty(LocalSettings.DBPASSWORD, master.getStore().getProperty("password"));
- LocalSettings.setProperty(LocalSettings.DBNAME, master.getStore().getProperty("dbname"));
- LocalSettings.setProperty(LocalSettings.DBPREFIX, master.getStore().getProperty("dbprefix"));
- if (!jCheckBox3.isSelected() && labeledTextChooser2.hasText()) {
- LocalSettings.setProperty(LocalSettings.OFFICE_HOME, labeledTextChooser2.get_Text(true));
- LocalSettings.setProperty(LocalSettings.OFFICE_USE, "true");
- LocalSettings.setProperty(LocalSettings.OFFICE_REMOTE, "false");
- } else if (labeledTextField1.getText().length() > 0 && labeledTextField2.getText().length() > 0) {
- LocalSettings.setProperty(LocalSettings.OFFICE_HOST, labeledTextField1.getText());
- LocalSettings.setProperty(LocalSettings.OFFICE_PORT, labeledTextField2.getText());
- LocalSettings.setProperty(LocalSettings.OFFICE_USE, "true");
- LocalSettings.setProperty(LocalSettings.OFFICE_REMOTE, "true");
- } else {
- LocalSettings.setProperty(LocalSettings.OFFICE_USE, "false");
- }
- if (jCheckBox2.isSelected()) {
- LocalSettings.setProperty(LocalSettings.DBTYPE, "network");
- } else {
- LocalSettings.setProperty(LocalSettings.DBTYPE, "single");
- }
-
- if (restore.isSelected()) {
- master.setMessage(Messages.RESTORING_DATABASE.toString());
- conn.setProgressbar(master.getProgressbar());
- Log.Debug(this, "Running DB restore ...");
- MigrationWB.instanceOf().doRestore(DumpURL.getText(), DumpName.getText(), backupDBName.getText(), conn, master);
- LocalSettings.save(forConnId);
- LocalSettings.apply();
- } else if (conn.connect(master.getStore().getProperty("driver"),
- master.getStore().getProperty("user"),
- master.getStore().getProperty("password"),
- master.getStore().getProperty("url"),
- master.getStore().getProperty("dbname"),
- master.getStore().getProperty("dbprefix"),
- !jCheckBox1.isSelected())) {
- master.setMessage(Messages.CONNECTION_VERIFIED.toString());
- LocalSettings.save(forConnId);
- LocalSettings.apply();
-
- if (!jCheckBox1.isSelected() && !restore.isSelected()) {
- master.setMessage(Messages.CREATING_DATABASE.toString());
- conn.setProgressbar(master.getProgressbar());
- Log.Debug(this, "Running DB install queries...");
- if (conn.runQueries(new DatabaseInstallation().getStructure())
- && conn.runQueries(new DatabaseInstallation().getInitialData())) {
- try {
- File f = new File(this.getClass().getResource("languages").toURI());
- Log.Debug(this, "Importing languages from: " + f.getCanonicalPath());
- File[] langfiles = f.listFiles();
- for (int i = 0; i < langfiles.length; i++) {
- File file = langfiles[i];
- LanguageManager.importLanguage(file.getName(), file);
- }
- } catch (Exception uRISyntaxException) {
- Log.Debug(this, uRISyntaxException.getMessage());
- }
-
- try {
- File f = new File(this.getClass().getResource("/mpv5/resources/extra/").toURI());
- Log.Debug(this, "Importing coutries from: " + f.getCanonicalPath());
- File[] langfiles = f.listFiles();
- for (int i = 0; i < langfiles.length; i++) {
- File file = langfiles[i];
- LanguageManager.importCountries(file);
- }
- } catch (Exception uRISyntaxException) {
- Log.Debug(this, uRISyntaxException.getMessage());
- }
- master.setMessage(Messages.CONNECTION_VERIFIED.toString());
- } else {
- master.setMessage(Messages.CREATING_DATABASE_FAILED.toString());
- return false;
- }
- }
- master.isEnd(true);
- } else {
- master.setMessage(Messages.CONNECTION_FAILED.toString());
- }
-
- } catch (Exception ex) {
- master.setMessage(Messages.CONNECTION_FAILED.toString());
- this.master.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
- Log.Debug(ex);
- if (Popup.Y_N_dialog(this, Messages.ERROR_OCCURED + "\n" + Messages.SEE_LOG + "?", Messages.CONNECTION_FAILED)) {
- try {
- Desktop.getDesktop().open(YConsole.getLogfile());
- } catch (IOException ex1) {
- Popup.error(ex1);
- }
- }
- return false;
- }
- this.master.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
- return true;
- } else {
- this.master.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
- return false;
- }
- }
-
- private boolean DirectoryCreate() {
- ////////////// The cache dir //////////////////////
- LocalSettings.setProperty(LocalSettings.CACHE_DIR, Main.MPPATH + File.separator + "Cache");
- LocalSettings.save(forConnId);
- File file1 = new File(LocalSettings.getProperty(LocalSettings.CACHE_DIR));
- file1.mkdirs();
- ///////////////////////////////////////////////////////////
-
- return file1.exists();
- }
-
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- jPanel2 = new javax.swing.JPanel();
- jLabel1 = new javax.swing.JLabel();
- jComboBox1 = new javax.swing.JComboBox();
- labeledTextField3 = new mpv5.ui.beans.LabeledTextField();
- jCheckBox1 = new javax.swing.JCheckBox();
- jLabel2 = new javax.swing.JLabel();
- jCheckBox2 = new javax.swing.JCheckBox();
- jPanel4 = new javax.swing.JPanel();
- labeledTextField4 = new mpv5.ui.beans.LabeledTextField();
- labeledTextField5 = new mpv5.ui.beans.LabeledTextField();
- jButton2 = new javax.swing.JButton();
- prefix = new mpv5.ui.beans.LabeledTextField();
- jButton3 = new javax.swing.JButton();
- jLabel4 = new javax.swing.JLabel();
- jButton1 = new javax.swing.JButton();
- labeledTextChooser1 = new mpv5.ui.beans.LabeledTextChooser();
- jPanel5 = new javax.swing.JPanel();
- restore = new javax.swing.JCheckBox();
- DumpURL = new javax.swing.JTextField();
- jLabel5 = new javax.swing.JLabel();
- backupDBName = new mpv5.ui.beans.LabeledTextField();
- DumpURLBtn = new javax.swing.JButton();
- DumpName = new mpv5.ui.beans.LabeledTextField();
- jPanel1 = new javax.swing.JPanel();
- labeledTextChooser2 = new mpv5.ui.beans.LabeledTextChooser();
- jCheckBox3 = new javax.swing.JCheckBox();
- labeledTextField1 = new mpv5.ui.beans.LabeledTextField();
- labeledTextField2 = new mpv5.ui.beans.LabeledTextField();
- jLabel3 = new javax.swing.JLabel();
- jPanel3 = new javax.swing.JPanel();
- jScrollPane1 = new javax.swing.JScrollPane();
- jTextArea1 = new javax.swing.JTextArea();
-
- setBackground(new java.awt.Color(255, 255, 255));
- java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N // NOI18N
- setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.border.title"))); // NOI18N
- setName("Form"); // NOI18N
- setLayout(new java.awt.BorderLayout());
-
- jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel2.border.title"))); // NOI18N
- jPanel2.setName("jPanel2"); // NOI18N
-
- jLabel1.setText(bundle.getString("wizard_DBSettings_1.jLabel1.text")); // NOI18N
- jLabel1.setName("jLabel1"); // NOI18N
-
- jComboBox1.setEditable(true);
- jComboBox1.setFont(new java.awt.Font("Dialog", 0, 11));
- jComboBox1.setName("jComboBox1"); // NOI18N
- jComboBox1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jComboBox1ActionPerformed(evt);
- }
- });
-
- labeledTextField3.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField3._Label")); // NOI18N
- labeledTextField3.setName("labeledTextField3"); // NOI18N
-
- jCheckBox1.setText(bundle.getString("wizard_DBSettings_1.jCheckBox1.text")); // NOI18N
- jCheckBox1.setName("jCheckBox1"); // NOI18N
-
- jLabel2.setText(bundle.getString("wizard_DBSettings_1.jLabel2.text")); // NOI18N
- jLabel2.setName("jLabel2"); // NOI18N
-
- jCheckBox2.setFont(new java.awt.Font("Dialog", 0, 12));
- jCheckBox2.setText(bundle.getString("wizard_DBSettings_1.jCheckBox2.text")); // NOI18N
- jCheckBox2.setName("jCheckBox2"); // NOI18N
-
- jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel4.border.title"))); // NOI18N
- jPanel4.setName("jPanel4"); // NOI18N
-
- labeledTextField4.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField4._Label")); // NOI18N
- labeledTextField4.setEnabled(false);
- labeledTextField4.setName("labeledTextField4"); // NOI18N
- jPanel4.add(labeledTextField4);
-
- labeledTextField5.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField5._Label")); // NOI18N
- labeledTextField5.setEnabled(false);
- labeledTextField5.setName("labeledTextField5"); // NOI18N
- jPanel4.add(labeledTextField5);
-
- jButton2.setFont(new java.awt.Font("Dialog", 0, 12));
- jButton2.setText(bundle.getString("wizard_DBSettings_1.jButton2.text")); // NOI18N
- jButton2.setName("jButton2"); // NOI18N
- jButton2.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton2ActionPerformed(evt);
- }
- });
- jPanel4.add(jButton2);
-
- prefix.set_Label(bundle.getString("wizard_DBSettings_1.prefix._Label")); // NOI18N
- prefix.setEnabled(false);
- prefix.setName("prefix"); // NOI18N
-
- jButton3.setFont(new java.awt.Font("Dialog", 0, 12));
- jButton3.setText(bundle.getString("wizard_DBSettings_1.jButton3.text")); // NOI18N
- jButton3.setName("jButton3"); // NOI18N
- jButton3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton3ActionPerformed(evt);
+ private static final long serialVersionUID = 1L;
+ private WizardMaster master;
+ private Integer forConnId = null;
+
+ public wizard_DBSettings_1(Wizard w, Integer forConnId) {
+ this.master = w;
+ initComponents();
+ labeledTextChooser2.setMode(JFileChooser.DIRECTORIES_ONLY);
+ jComboBox1.setModel(new DefaultComboBoxModel(ConnectionTypeHandler.DRIVERS));
+ this.forConnId = forConnId;
+ load();
+ }
+
+ private boolean DBVerification() {
+ DatabaseConnection conn;
+ this.master.setCursor(new Cursor(Cursor.WAIT_CURSOR));
+
+ if (labeledTextChooser1.get_Text(false) != null && labeledTextChooser1.get_Text(false).length() > 0) {
+ master.getStore().changeProperty("driver", jComboBox1.getSelectedItem().toString());
+ master.getStore().changeProperty("url", labeledTextChooser1.get_Text(false));
+ master.getStore().changeProperty("user", labeledTextField4.get_Text());
+ master.getStore().changeProperty("password", labeledTextField5.get_Text());
+ master.getStore().changeProperty("dbname", labeledTextField3.get_Text());
+ master.getStore().changeProperty("dbprefix", prefix.get_Text());
+ master.setMessage(Messages.CONNECTION_PROBE + master.getStore().getProperty("driver"));
+ conn = new DatabaseConnection();
+ try {
+ LocalSettings.setProperty(LocalSettings.DBPATH, master.getStore().getProperty("url"));
+ LocalSettings.setProperty(LocalSettings.DBDRIVER, master.getStore().getProperty("driver"));
+ LocalSettings.setProperty(LocalSettings.DBUSER, master.getStore().getProperty("user"));
+ LocalSettings.setProperty(LocalSettings.DBPASSWORD, master.getStore().getProperty("password"));
+ LocalSettings.setProperty(LocalSettings.DBNAME, master.getStore().getProperty("dbname"));
+ LocalSettings.setProperty(LocalSettings.DBPREFIX, master.getStore().getProperty("dbprefix"));
+ if (!jCheckBox3.isSelected() && labeledTextChooser2.hasText()) {
+ LocalSettings.setProperty(LocalSettings.OFFICE_HOME, labeledTextChooser2.get_Text(true));
+ LocalSettings.setProperty(LocalSettings.OFFICE_USE, "true");
+ LocalSettings.setProperty(LocalSettings.OFFICE_REMOTE, "false");
+ } else if (labeledTextField1.getText().length() > 0 && labeledTextField2.getText().length() > 0) {
+ LocalSettings.setProperty(LocalSettings.OFFICE_HOST, labeledTextField1.getText());
+ LocalSettings.setProperty(LocalSettings.OFFICE_PORT, labeledTextField2.getText());
+ LocalSettings.setProperty(LocalSettings.OFFICE_USE, "true");
+ LocalSettings.setProperty(LocalSettings.OFFICE_REMOTE, "true");
+ } else {
+ LocalSettings.setProperty(LocalSettings.OFFICE_USE, "false");
}
- });
-
- jLabel4.setFont(new java.awt.Font("Dialog", 0, 12));
- jLabel4.setText(bundle.getString("wizard_DBSettings_1.jLabel4.text")); // NOI18N
- jLabel4.setName("jLabel4"); // NOI18N
-
- jButton1.setText(bundle.getString("wizard_DBSettings_1.jButton1.text")); // NOI18N
- jButton1.setName("jButton1"); // NOI18N
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
+ if (jCheckBox2.isSelected()) {
+ LocalSettings.setProperty(LocalSettings.DBTYPE, "network");
+ } else {
+ LocalSettings.setProperty(LocalSettings.DBTYPE, "single");
}
- });
-
- labeledTextChooser1.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextChooser1._Label")); // NOI18N
- labeledTextChooser1.setFocusCycleRoot(true);
- labeledTextChooser1.setFocusTraversalPolicyProvider(true);
- labeledTextChooser1.setName("labeledTextChooser1"); // NOI18N
- jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel5.border.title"))); // NOI18N
- jPanel5.setName("jPanel5"); // NOI18N
-
- restore.setText(bundle.getString("wizard_DBSettings_1.restore.text")); // NOI18N
- restore.setName("restore"); // NOI18N
- restore.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- restoreActionPerformed(evt);
+ if (restore.isSelected()) {
+ master.setMessage(Messages.RESTORING_DATABASE.toString());
+ conn.setProgressbar(master.getProgressbar());
+ Log.Debug(this, "Running DB restore ...");
+ MigrationWB.instanceOf().doRestore(DumpURL.getText(), DumpName.getText(), backupDBName.getText(), conn, master);
+ LocalSettings.save(forConnId);
+ LocalSettings.apply();
+ } else if (conn.connect(master.getStore().getProperty("driver"),
+ master.getStore().getProperty("user"),
+ master.getStore().getProperty("password"),
+ master.getStore().getProperty("url"),
+ master.getStore().getProperty("dbname"),
+ master.getStore().getProperty("dbprefix"),
+ !existingData.isSelected())) {
+ Log.Debug(this, master.getStore().getProperty("url") + ": OK");
+ master.setMessage(Messages.CONNECTION_VERIFIED.toString());
+ LocalSettings.save(forConnId);
+ LocalSettings.apply();
+
+ if (!existingData.isSelected()) {
+ master.setMessage(Messages.CREATING_DATABASE.toString());
+ conn.setProgressbar(master.getProgressbar());
+ Log.Debug(this, "Running DB install queries...");
+ if (conn.runQueries(new DatabaseInstallation().getStructure())
+ & conn.runQueries(new DatabaseInstallation().getInitialData())) {
+ try {
+ File f = new File(this.getClass().getResource("languages").toURI());
+ Log.Debug(this, "Importing languages from: " + f.getCanonicalPath());
+ File[] langfiles = f.listFiles();
+ for (int i = 0; i < langfiles.length; i++) {
+ File file = langfiles[i];
+ LanguageManager.importLanguage(file.getName(), file);
+ }
+ } catch (Exception uRISyntaxException) {
+ Log.Debug(this, uRISyntaxException.getMessage());
+ }
+
+ try {
+ File f = new File(this.getClass().getResource("/mpv5/resources/extra/").toURI());
+ Log.Debug(this, "Importing coutries from: " + f.getCanonicalPath());
+ File[] langfiles = f.listFiles();
+ for (int i = 0; i < langfiles.length; i++) {
+ File file = langfiles[i];
+ LanguageManager.importCountries(file);
+ }
+ } catch (Exception uRISyntaxException) {
+ Log.Debug(this, uRISyntaxException.getMessage());
+ }
+ master.setMessage(Messages.CONNECTION_VERIFIED.toString());
+ } else {
+ LocalSettings.removeInstance(forConnId);
+ LocalSettings.save();
+ throw new Exception(Messages.CREATING_DATABASE_FAILED.toString());
+ }
+ }
+ master.isEnd(true);
+ } else {
+ LocalSettings.removeInstance(forConnId);
+ LocalSettings.save();
+ throw new Exception(Messages.CONNECTION_FAILED.toString());
}
- });
-
- DumpURL.setEditable(false);
- DumpURL.setText(bundle.getString("wizard_DBSettings_1.DumpURL.text")); // NOI18N
- DumpURL.setName("DumpURL"); // NOI18N
- jLabel5.setText(bundle.getString("wizard_DBSettings_1.jLabel5.text")); // NOI18N
- jLabel5.setName("jLabel5"); // NOI18N
-
- backupDBName.set_Label(bundle.getString("wizard_DBSettings_1.backupDBName._Label")); // NOI18N
- backupDBName.setEnabled(false);
- backupDBName.setName("backupDBName"); // NOI18N
-
- DumpURLBtn.setText(bundle.getString("wizard_DBSettings_1.DumpURLBtn.text")); // NOI18N
- DumpURLBtn.setEnabled(false);
- DumpURLBtn.setName("DumpURLBtn"); // NOI18N
- DumpURLBtn.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- DumpURLBtnActionPerformed(evt);
+ } catch (Exception ex) {
+ master.setMessage(Messages.CONNECTION_FAILED.toString());
+ this.master.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
+ Log.Debug(ex);
+ if (Popup.Y_N_dialog(this, Messages.ERROR_OCCURED + "\n" + Messages.SEE_LOG + "?", Messages.CONNECTION_FAILED)) {
+ try {
+ Desktop.getDesktop().open(YConsole.getLogfile());
+ } catch (IOException ex1) {
+ Popup.error(ex1);
+ }
}
- });
-
- DumpName.set_Label(bundle.getString("wizard_DBSettings_1.DumpName._Label")); // NOI18N
- DumpName.setEnabled(false);
- DumpName.setName("DumpName"); // NOI18N
-
- javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
- jPanel5.setLayout(jPanel5Layout);
- jPanel5Layout.setHorizontalGroup(
- jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addComponent(restore)
- .addContainerGap())
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
- .addComponent(DumpURL, javax.swing.GroupLayout.DEFAULT_SIZE, 645, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(DumpURLBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(backupDBName, javax.swing.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
- .addComponent(DumpName, javax.swing.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
- );
- jPanel5Layout.setVerticalGroup(
- jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addComponent(restore)
- .addGap(4, 4, 4)
- .addComponent(jLabel5)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(DumpURL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(DumpURLBtn))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(backupDBName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
- .addComponent(DumpName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2.setLayout(jPanel2Layout);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ return false;
+ }
+ this.master.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
+ return true;
+ } else {
+ this.master.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
+ return false;
+ }
+ }
+
+ private boolean DirectoryCreate() {
+ ////////////// The cache dir //////////////////////
+ LocalSettings.setProperty(LocalSettings.CACHE_DIR, Main.MPPATH + File.separator + "Cache");
+ LocalSettings.save(forConnId);
+ File file1 = new File(LocalSettings.getProperty(LocalSettings.CACHE_DIR));
+ file1.mkdirs();
+ ///////////////////////////////////////////////////////////
+
+ return file1.exists();
+ }
+
+ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ jPanel2 = new javax.swing.JPanel();
+ jLabel1 = new javax.swing.JLabel();
+ jComboBox1 = new javax.swing.JComboBox();
+ labeledTextField3 = new mpv5.ui.beans.LabeledTextField();
+ existingData = new javax.swing.JCheckBox();
+ jLabel2 = new javax.swing.JLabel();
+ jCheckBox2 = new javax.swing.JCheckBox();
+ jPanel4 = new javax.swing.JPanel();
+ labeledTextField4 = new mpv5.ui.beans.LabeledTextField();
+ labeledTextField5 = new mpv5.ui.beans.LabeledTextField();
+ jButton2 = new javax.swing.JButton();
+ prefix = new mpv5.ui.beans.LabeledTextField();
+ jButton3 = new javax.swing.JButton();
+ jLabel4 = new javax.swing.JLabel();
+ jButton1 = new javax.swing.JButton();
+ labeledTextChooser1 = new mpv5.ui.beans.LabeledTextChooser();
+ jPanel5 = new javax.swing.JPanel();
+ restore = new javax.swing.JCheckBox();
+ DumpURL = new javax.swing.JTextField();
+ jLabel5 = new javax.swing.JLabel();
+ backupDBName = new mpv5.ui.beans.LabeledTextField();
+ DumpURLBtn = new javax.swing.JButton();
+ DumpName = new mpv5.ui.beans.LabeledTextField();
+ jPanel1 = new javax.swing.JPanel();
+ labeledTextChooser2 = new mpv5.ui.beans.LabeledTextChooser();
+ jCheckBox3 = new javax.swing.JCheckBox();
+ labeledTextField1 = new mpv5.ui.beans.LabeledTextField();
+ labeledTextField2 = new mpv5.ui.beans.LabeledTextField();
+ jLabel3 = new javax.swing.JLabel();
+
+ setBackground(new java.awt.Color(255, 255, 255));
+ java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.border.title"))); // NOI18N
+ setName("Form"); // NOI18N
+ setLayout(new java.awt.BorderLayout());
+
+ jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel2.border.title"))); // NOI18N
+ jPanel2.setName("jPanel2"); // NOI18N
+
+ jLabel1.setText(bundle.getString("wizard_DBSettings_1.jLabel1.text")); // NOI18N
+ jLabel1.setName("jLabel1"); // NOI18N
+
+ jComboBox1.setEditable(true);
+ jComboBox1.setFont(new java.awt.Font("Dialog", 0, 11)); // NOI18N
+ jComboBox1.setName("jComboBox1"); // NOI18N
+ jComboBox1.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jComboBox1ActionPerformed(evt);
+ }
+ });
+
+ labeledTextField3.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField3._Label")); // NOI18N
+ labeledTextField3.setName("labeledTextField3"); // NOI18N
+
+ existingData.setText(bundle.getString("wizard_DBSettings_1.existingData.text")); // NOI18N
+ existingData.setName("existingData"); // NOI18N
+
+ jLabel2.setText(bundle.getString("wizard_DBSettings_1.jLabel2.text")); // NOI18N
+ jLabel2.setName("jLabel2"); // NOI18N
+
+ jCheckBox2.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
+ jCheckBox2.setText(bundle.getString("wizard_DBSettings_1.jCheckBox2.text")); // NOI18N
+ jCheckBox2.setName("jCheckBox2"); // NOI18N
+
+ jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel4.border.title"))); // NOI18N
+ jPanel4.setName("jPanel4"); // NOI18N
+
+ labeledTextField4.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField4._Label")); // NOI18N
+ labeledTextField4.setEnabled(false);
+ labeledTextField4.setName("labeledTextField4"); // NOI18N
+ jPanel4.add(labeledTextField4);
+
+ labeledTextField5.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField5._Label")); // NOI18N
+ labeledTextField5.setEnabled(false);
+ labeledTextField5.setName("labeledTextField5"); // NOI18N
+ jPanel4.add(labeledTextField5);
+
+ jButton2.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
+ jButton2.setText(bundle.getString("wizard_DBSettings_1.jButton2.text")); // NOI18N
+ jButton2.setName("jButton2"); // NOI18N
+ jButton2.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton2ActionPerformed(evt);
+ }
+ });
+ jPanel4.add(jButton2);
+
+ prefix.set_Label(bundle.getString("wizard_DBSettings_1.prefix._Label")); // NOI18N
+ prefix.setEnabled(false);
+ prefix.setName("prefix"); // NOI18N
+
+ jButton3.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
+ jButton3.setText(bundle.getString("wizard_DBSettings_1.jButton3.text")); // NOI18N
+ jButton3.setName("jButton3"); // NOI18N
+ jButton3.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton3ActionPerformed(evt);
+ }
+ });
+
+ jLabel4.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
+ jLabel4.setText(bundle.getString("wizard_DBSettings_1.jLabel4.text")); // NOI18N
+ jLabel4.setName("jLabel4"); // NOI18N
+
+ jButton1.setText(bundle.getString("wizard_DBSettings_1.jButton1.text")); // NOI18N
+ jButton1.setName("jButton1"); // NOI18N
+ jButton1.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton1ActionPerformed(evt);
+ }
+ });
+
+ labeledTextChooser1.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextChooser1._Label")); // NOI18N
+ labeledTextChooser1.setFocusCycleRoot(true);
+ labeledTextChooser1.setFocusTraversalPolicyProvider(true);
+ labeledTextChooser1.setName("labeledTextChooser1"); // NOI18N
+
+ jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel5.border.title"))); // NOI18N
+ jPanel5.setName("jPanel5"); // NOI18N
+
+ restore.setText(bundle.getString("wizard_DBSettings_1.restore.text")); // NOI18N
+ restore.setName("restore"); // NOI18N
+ restore.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ restoreActionPerformed(evt);
+ }
+ });
+
+ DumpURL.setEditable(false);
+ DumpURL.setText(bundle.getString("wizard_DBSettings_1.DumpURL.text")); // NOI18N
+ DumpURL.setName("DumpURL"); // NOI18N
+
+ jLabel5.setText(bundle.getString("wizard_DBSettings_1.jLabel5.text")); // NOI18N
+ jLabel5.setName("jLabel5"); // NOI18N
+
+ backupDBName.set_Label(bundle.getString("wizard_DBSettings_1.backupDBName._Label")); // NOI18N
+ backupDBName.setEnabled(false);
+ backupDBName.setName("backupDBName"); // NOI18N
+
+ DumpURLBtn.setText(bundle.getString("wizard_DBSettings_1.DumpURLBtn.text")); // NOI18N
+ DumpURLBtn.setEnabled(false);
+ DumpURLBtn.setName("DumpURLBtn"); // NOI18N
+ DumpURLBtn.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ DumpURLBtnActionPerformed(evt);
+ }
+ });
+
+ DumpName.set_Label(bundle.getString("wizard_DBSettings_1.DumpName._Label")); // NOI18N
+ DumpName.setEnabled(false);
+ DumpName.setName("DumpName"); // NOI18N
+
+ javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
+ jPanel5.setLayout(jPanel5Layout);
+ jPanel5Layout.setHorizontalGroup(
+ jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(backupDBName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(DumpName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel5Layout.createSequentialGroup()
+ .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(DumpURL, javax.swing.GroupLayout.PREFERRED_SIZE, 434, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(DumpURLBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(restore, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ );
+ jPanel5Layout.setVerticalGroup(
+ jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel5Layout.createSequentialGroup()
+ .addComponent(restore)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
+ .addComponent(DumpURL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(DumpURLBtn)
+ .addComponent(jLabel5))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(backupDBName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(DumpName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(0, 0, 0))
+ );
+
+ javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
+ jPanel2.setLayout(jPanel2Layout);
+ jPanel2Layout.setHorizontalGroup(
+ jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(4, 4, 4)
- .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(10, 10, 10)
- .addComponent(jButton1))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(4, 4, 4)
- .addComponent(jCheckBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 415, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(labeledTextChooser1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 602, Short.MAX_VALUE)
- .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(labeledTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(prefix, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(jButton3)
- .addGap(18, 18, 18)
- .addComponent(jLabel4))
- .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 602, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(4, 4, 4)
- .addComponent(jLabel1))
- .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jButton1))
- .addGap(2, 2, 2)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(6, 6, 6)
- .addComponent(jLabel2))
- .addComponent(jCheckBox2))
- .addGap(7, 7, 7)
- .addComponent(labeledTextChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jCheckBox1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(labeledTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(prefix, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- );
-
- add(jPanel2, java.awt.BorderLayout.NORTH);
-
- jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel1.border.title"))); // NOI18N
- jPanel1.setName("jPanel1"); // NOI18N
-
- labeledTextChooser2.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextChooser2._Label")); // NOI18N
- labeledTextChooser2.setName("labeledTextChooser2"); // NOI18N
-
- jCheckBox3.setText(bundle.getString("wizard_DBSettings_1.jCheckBox3.text")); // NOI18N
- jCheckBox3.setName("jCheckBox3"); // NOI18N
- jCheckBox3.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jCheckBox3ItemStateChanged(evt);
- }
- });
-
- labeledTextField1.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField1._Label")); // NOI18N
- labeledTextField1.set_Text(bundle.getString("wizard_DBSettings_1.labeledTextField1._Text")); // NOI18N
- labeledTextField1.setEnabled(false);
- labeledTextField1.setName("labeledTextField1"); // NOI18N
-
- labeledTextField2.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField2._Label")); // NOI18N
- labeledTextField2.setEnabled(false);
- labeledTextField2.setName("labeledTextField2"); // NOI18N
-
- jLabel3.setText(bundle.getString("wizard_DBSettings_1.jLabel3.text")); // NOI18N
- jLabel3.setName("jLabel3"); // NOI18N
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(labeledTextChooser2, javax.swing.GroupLayout.DEFAULT_SIZE, 660, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jCheckBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(labeledTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(labeledTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(jLabel3))
- .addContainerGap())
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(labeledTextChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
- .addComponent(labeledTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jCheckBox3)
- .addComponent(labeledTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap())
- );
-
- add(jPanel1, java.awt.BorderLayout.CENTER);
-
- jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel3.border.title"))); // NOI18N
- jPanel3.setName("jPanel3"); // NOI18N
-
- jScrollPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
- jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
- jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
- jScrollPane1.setName("jScrollPane1"); // NOI18N
-
- jTextArea1.setBackground(new java.awt.Color(236, 233, 216));
- jTextArea1.setColumns(20);
- jTextArea1.setEditable(false);
- jTextArea1.setFont(new java.awt.Font("Tahoma", 0, 12));
- jTextArea1.setLineWrap(true);
- jTextArea1.setRows(5);
- jTextArea1.setText(bundle.getString("wizard_DBSettings_1.jTextArea1.text")); // NOI18N
- jTextArea1.setWrapStyleWord(true);
- jTextArea1.setName("jTextArea1"); // NOI18N
- jScrollPane1.setViewportView(jTextArea1);
-
- javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
- jPanel3.setLayout(jPanel3Layout);
- jPanel3Layout.setHorizontalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
- );
- jPanel3Layout.setVerticalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- );
-
- add(jPanel3, java.awt.BorderLayout.SOUTH);
- }// </editor-fold>//GEN-END:initComponents
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(4, 4, 4)
+ .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(10, 10, 10)
+ .addComponent(jButton1))
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(4, 4, 4)
+ .addComponent(jCheckBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 415, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(labeledTextChooser1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(existingData, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(labeledTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addComponent(prefix, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addComponent(jButton3)
+ .addGap(18, 18, 18)
+ .addComponent(jLabel4))
+ .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ );
+ jPanel2Layout.setVerticalGroup(
+ jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addGap(4, 4, 4)
+ .addComponent(jLabel1))
+ .addComponent(jComboBox1)
+ .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
+ .addGap(4, 4, 4)
+ .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addGap(6, 6, 6)
+ .addComponent(jLabel2))
+ .addComponent(jCheckBox2))
+ .addGap(7, 7, 7)
+ .addComponent(labeledTextChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(existingData)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addComponent(labeledTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(prefix, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(0, 0, 0))
+ );
+
+ add(jPanel2, java.awt.BorderLayout.NORTH);
+
+ jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("wizard_DBSettings_1.jPanel1.border.title"))); // NOI18N
+ jPanel1.setName("jPanel1"); // NOI18N
+
+ labeledTextChooser2.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextChooser2._Label")); // NOI18N
+ labeledTextChooser2.setName("labeledTextChooser2"); // NOI18N
+
+ jCheckBox3.setText(bundle.getString("wizard_DBSettings_1.jCheckBox3.text")); // NOI18N
+ jCheckBox3.setName("jCheckBox3"); // NOI18N
+ jCheckBox3.addItemListener(new java.awt.event.ItemListener() {
+ public void itemStateChanged(java.awt.event.ItemEvent evt) {
+ jCheckBox3ItemStateChanged(evt);
+ }
+ });
+
+ labeledTextField1.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField1._Label")); // NOI18N
+ labeledTextField1.set_Text(bundle.getString("wizard_DBSettings_1.labeledTextField1._Text")); // NOI18N
+ labeledTextField1.setEnabled(false);
+ labeledTextField1.setName("labeledTextField1"); // NOI18N
+
+ labeledTextField2.set_Label(bundle.getString("wizard_DBSettings_1.labeledTextField2._Label")); // NOI18N
+ labeledTextField2.setEnabled(false);
+ labeledTextField2.setName("labeledTextField2"); // NOI18N
+
+ jLabel3.setText(bundle.getString("wizard_DBSettings_1.jLabel3.text")); // NOI18N
+ jLabel3.setName("jLabel3"); // NOI18N
+
+ javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
+ jPanel1.setLayout(jPanel1Layout);
+ jPanel1Layout.setHorizontalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(labeledTextChooser2, javax.swing.GroupLayout.DEFAULT_SIZE, 592, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(jCheckBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(labeledTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(labeledTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(jLabel3))
+ .addContainerGap())
+ );
+ jPanel1Layout.setVerticalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(labeledTextChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jLabel3)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
+ .addComponent(labeledTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(jCheckBox3)
+ .addComponent(labeledTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addContainerGap())
+ );
+
+ add(jPanel1, java.awt.BorderLayout.CENTER);
+ }// </editor-fold>//GEN-END:initComponents
private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
- if (jComboBox1.getSelectedItem().toString().contains("mysql")) {
- labeledTextChooser1.set_Text("localhost:3306");
- if (restore.isSelected()) {
- backupDBName.setText("");
- backupDBName.setEnabled(false);
- DumpName.setEnabled(true);
- }
- } else if (jComboBox1.getSelectedItem().toString().contains("custom")) {
- if (restore.isSelected()) {
- DumpName.setText("");
- DumpName.setEnabled(false);
- backupDBName.setText("");
- backupDBName.setEnabled(false);
- }
- labeledTextChooser1.set_Text("jdbc:sql://<path>:port");
- } else if (jComboBox1.getSelectedItem().toString().contains("derby")) {
- labeledTextChooser1.set_Text(Main.MPPATH);
- if (restore.isSelected()) {
- DumpName.setText("");
- DumpName.setEnabled(false);
- backupDBName.setEnabled(true);
- }
- }
+ if (jComboBox1.getSelectedItem().toString().contains("mysql")) {
+ labeledTextChooser1.set_Text("localhost:3306");
+ if (restore.isSelected()) {
+ backupDBName.setText("");
+ backupDBName.setEnabled(false);
+ DumpName.setEnabled(true);
+ }
+ } else if (jComboBox1.getSelectedItem().toString().contains("custom")) {
+ if (restore.isSelected()) {
+ DumpName.setText("");
+ DumpName.setEnabled(false);
+ backupDBName.setText("");
+ backupDBName.setEnabled(false);
+ }
+ labeledTextChooser1.set_Text("jdbc:sql://<path>:port");
+ } else if (jComboBox1.getSelectedItem().toString().contains("derby")) {
+ labeledTextChooser1.set_Text(Main.MPPATH);
+ if (restore.isSelected()) {
+ DumpName.setText("");
+ DumpName.setEnabled(false);
+ backupDBName.setEnabled(true);
+ }
+ }
}//GEN-LAST:event_jComboBox1ActionPerformed
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
- labeledTextField4.setEnabled(true);
- labeledTextField5.setEnabled(true);
+ labeledTextField4.setEnabled(true);
+ labeledTextField5.setEnabled(true);
}//GEN-LAST:event_jButton2ActionPerformed
private void jCheckBox3ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBox3ItemStateChanged
- labeledTextField1.setEnabled(jCheckBox3.isSelected());
- labeledTextField2.setEnabled(jCheckBox3.isSelected());
- labeledTextChooser2.setEnabled(!jCheckBox3.isSelected());
+ labeledTextField1.setEnabled(jCheckBox3.isSelected());
+ labeledTextField2.setEnabled(jCheckBox3.isSelected());
+ labeledTextChooser2.setEnabled(!jCheckBox3.isSelected());
}//GEN-LAST:event_jCheckBox3ItemStateChanged
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
- prefix.setEnabled(true);
+ prefix.setEnabled(true);
}//GEN-LAST:event_jButton3ActionPerformed
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
- try {
- ConnectionTypeHandler.testDriver(jComboBox1.getSelectedItem().toString());
- Popup.notice("OK!");
- } catch (ClassNotFoundException ex) {
- Popup.error(ex);
- }
+ try {
+ ConnectionTypeHandler.testDriver(jComboBox1.getSelectedItem().toString());
+ Popup.notice("OK!");
+ } catch (ClassNotFoundException ex) {
+ Popup.error(ex);
+ }
}//GEN-LAST:event_jButton1ActionPerformed
private void DumpURLBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DumpURLBtnActionPerformed
- DialogForFile df = new DialogForFile();
- df.setFileFilter(DialogForFile.SQL_FILES);
- if (df.chooseFile()) {
- DumpURL.setText(df.getSelectedFile().getAbsolutePath());
- }
+ DialogForFile df = new DialogForFile();
+ df.setFileFilter(DialogForFile.SQL_FILES);
+ if (df.chooseFile()) {
+ DumpURL.setText(df.getSelectedFile().getAbsolutePath());
+ }
}//GEN-LAST:event_DumpURLBtnActionPerformed
private void restoreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_restoreActionPerformed
- JCheckBox box = (JCheckBox) evt.getSource();
- if (box.isSelected()) {
- DumpURL.setEditable(true);
- DumpURLBtn.setEnabled(true);
- if (jComboBox1.getSelectedItem().toString().contains("mysql")) {
- DumpName.setEnabled(true);
- backupDBName.setEnabled(false);
- } else if (jComboBox1.getSelectedItem().toString().contains("derby")) {
- DumpName.setEnabled(false);
- backupDBName.setEnabled(true);
- } else {
- DumpName.setEnabled(false);
- backupDBName.setEnabled(false);
- }
- } else {
- DumpURL.setText("");
- DumpURL.setEditable(false);
- DumpURLBtn.setEnabled(false);
- DumpName.setText("");
- DumpName.setEnabled(false);
- backupDBName.setText("");
- backupDBName.setEnabled(false);
- }
+ JCheckBox box = (JCheckBox) evt.getSource();
+ if (box.isSelected()) {
+ DumpURL.setEditable(true);
+ DumpURLBtn.setEnabled(true);
+ if (jComboBox1.getSelectedItem().toString().contains("mysql")) {
+ DumpName.setEnabled(true);
+ backupDBName.setEnabled(false);
+ } else if (jComboBox1.getSelectedItem().toString().contains("derby")) {
+ DumpName.setEnabled(false);
+ backupDBName.setEnabled(true);
+ } else {
+ DumpName.setEnabled(false);
+ backupDBName.setEnabled(false);
+ }
+ } else {
+ DumpURL.setText("");
+ DumpURL.setEditable(false);
+ DumpURLBtn.setEnabled(false);
+ DumpName.setText("");
+ DumpName.setEnabled(false);
+ backupDBName.setText("");
+ backupDBName.setEnabled(false);
+ }
}//GEN-LAST:event_restoreActionPerformed
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private mpv5.ui.beans.LabeledTextField DumpName;
- private javax.swing.JTextField DumpURL;
- private javax.swing.JButton DumpURLBtn;
- private mpv5.ui.beans.LabeledTextField backupDBName;
- private javax.swing.JButton jButton1;
- private javax.swing.JButton jButton2;
- private javax.swing.JButton jButton3;
- private javax.swing.JCheckBox jCheckBox1;
- private javax.swing.JCheckBox jCheckBox2;
- private javax.swing.JCheckBox jCheckBox3;
- private javax.swing.JComboBox jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JLabel jLabel5;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JPanel jPanel3;
- private javax.swing.JPanel jPanel4;
- private javax.swing.JPanel jPanel5;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JTextArea jTextArea1;
- private mpv5.ui.beans.LabeledTextChooser labeledTextChooser1;
- private mpv5.ui.beans.LabeledTextChooser labeledTextChooser2;
- private mpv5.ui.beans.LabeledTextField labeledTextField1;
- private mpv5.ui.beans.LabeledTextField labeledTextField2;
- private mpv5.ui.beans.LabeledTextField labeledTextField3;
- private mpv5.ui.beans.LabeledTextField labeledTextField4;
- private mpv5.ui.beans.LabeledTextField labeledTextField5;
- private mpv5.ui.beans.LabeledTextField prefix;
- private javax.swing.JCheckBox restore;
- // End of variables declaration//GEN-END:variables
-
- public boolean next() {
- if (DBVerification() & DirectoryCreate()) {
- this.master.dispose();
- Main.start();
- return true;
- } else {
- this.master.setCursor(Cursor.DEFAULT_CURSOR);
- return false;
- }
- }
-
- public boolean back() {
- return false;
- }
-
- public final void load() {
- String dbn = Constants.DATABASENAME;
- if (forConnId != null) {
- dbn += forConnId;
- }
- labeledTextChooser1.set_Text(Main.MPPATH);
- labeledTextField3.set_Text(dbn);
- labeledTextField1.requestFocusInWindow();
- }
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private mpv5.ui.beans.LabeledTextField DumpName;
+ private javax.swing.JTextField DumpURL;
+ private javax.swing.JButton DumpURLBtn;
+ private mpv5.ui.beans.LabeledTextField backupDBName;
+ private javax.swing.JCheckBox existingData;
+ private javax.swing.JButton jButton1;
+ private javax.swing.JButton jButton2;
+ private javax.swing.JButton jButton3;
+ private javax.swing.JCheckBox jCheckBox2;
+ private javax.swing.JCheckBox jCheckBox3;
+ private javax.swing.JComboBox jComboBox1;
+ private javax.swing.JLabel jLabel1;
+ private javax.swing.JLabel jLabel2;
+ private javax.swing.JLabel jLabel3;
+ private javax.swing.JLabel jLabel4;
+ private javax.swing.JLabel jLabel5;
+ private javax.swing.JPanel jPanel1;
+ private javax.swing.JPanel jPanel2;
+ private javax.swing.JPanel jPanel4;
+ private javax.swing.JPanel jPanel5;
+ private mpv5.ui.beans.LabeledTextChooser labeledTextChooser1;
+ private mpv5.ui.beans.LabeledTextChooser labeledTextChooser2;
+ private mpv5.ui.beans.LabeledTextField labeledTextField1;
+ private mpv5.ui.beans.LabeledTextField labeledTextField2;
+ private mpv5.ui.beans.LabeledTextField labeledTextField3;
+ private mpv5.ui.beans.LabeledTextField labeledTextField4;
+ private mpv5.ui.beans.LabeledTextField labeledTextField5;
+ private mpv5.ui.beans.LabeledTextField prefix;
+ private javax.swing.JCheckBox restore;
+ // End of variables declaration//GEN-END:variables
+
+ public boolean next() {
+ if (DBVerification() & DirectoryCreate()) {
+ this.master.dispose();
+ Main.start();
+ return true;
+ } else {
+ this.master.setCursor(Cursor.DEFAULT_CURSOR);
+ return false;
+ }
+ }
+
+ public boolean back() {
+ return false;
+ }
+
+ public final void load() {
+ String dbn = Constants.DATABASENAME;
+ if (forConnId != null) {
+ dbn += forConnId;
+ }
+ labeledTextChooser1.set_Text(Main.MPPATH);
+ labeledTextField3.set_Text(dbn);
+ labeledTextField1.requestFocusInWindow();
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.