java/abc-drupal-gui/src/cz/frantovo/abcDrupal/gui/HlavniOkno.java
changeset 4 5816c7f61a2a
parent 3 d40099dbbdd1
child 5 ed73b8912549
     1.1 --- a/java/abc-drupal-gui/src/cz/frantovo/abcDrupal/gui/HlavniOkno.java	Thu Dec 31 18:41:04 2009 +0100
     1.2 +++ b/java/abc-drupal-gui/src/cz/frantovo/abcDrupal/gui/HlavniOkno.java	Fri Jan 01 16:44:46 2010 +0100
     1.3 @@ -25,6 +25,7 @@
     1.4      /** Creates new form HlavniOkno */
     1.5      public HlavniOkno() {
     1.6  	initComponents();
     1.7 +	setLocationRelativeTo(null);
     1.8  	nactiPromenneProstredi();
     1.9      }
    1.10  
    1.11 @@ -54,7 +55,7 @@
    1.12          jdbcCil = new javax.swing.JTextField();
    1.13          jScrollPane1 = new javax.swing.JScrollPane();
    1.14          vystup = new javax.swing.JTextArea();
    1.15 -        jButton1 = new javax.swing.JButton();
    1.16 +        nahratData = new javax.swing.JButton();
    1.17  
    1.18          setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    1.19          setTitle("ABC-Drupal");
    1.20 @@ -63,9 +64,9 @@
    1.21  
    1.22          jLabel2.setText("Cíl");
    1.23  
    1.24 -        jdbcZdroj.setText("jdbcZdroj");
    1.25 +        jdbcZdroj.setText("jdbc:mysql://127.0.0.1:3306/itbiz?user=itbiz&password=nbusr123");
    1.26  
    1.27 -        jdbcCil.setText("jdbcCil");
    1.28 +        jdbcCil.setText("jdbc:mysql://127.0.0.1:3306/abclinuxu?user=abclinuxu&password=nbusr123");
    1.29  
    1.30          vystup.setColumns(20);
    1.31          vystup.setEditable(false);
    1.32 @@ -73,10 +74,10 @@
    1.33          vystup.setEnabled(false);
    1.34          jScrollPane1.setViewportView(vystup);
    1.35  
    1.36 -        jButton1.setText("Nahrát data");
    1.37 -        jButton1.addActionListener(new java.awt.event.ActionListener() {
    1.38 +        nahratData.setText("Nahrát data");
    1.39 +        nahratData.addActionListener(new java.awt.event.ActionListener() {
    1.40              public void actionPerformed(java.awt.event.ActionEvent evt) {
    1.41 -                jButton1ActionPerformed(evt);
    1.42 +                nahratDataActionPerformed(evt);
    1.43              }
    1.44          });
    1.45  
    1.46 @@ -96,7 +97,7 @@
    1.47                          .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    1.48                              .addComponent(jdbcCil, javax.swing.GroupLayout.DEFAULT_SIZE, 560, Short.MAX_VALUE)
    1.49                              .addComponent(jdbcZdroj, javax.swing.GroupLayout.DEFAULT_SIZE, 560, Short.MAX_VALUE)))
    1.50 -                    .addComponent(jButton1))
    1.51 +                    .addComponent(nahratData))
    1.52                  .addContainerGap())
    1.53          );
    1.54          layout.setVerticalGroup(
    1.55 @@ -113,17 +114,17 @@
    1.56                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    1.57                  .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
    1.58                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    1.59 -                .addComponent(jButton1)
    1.60 +                .addComponent(nahratData)
    1.61                  .addContainerGap())
    1.62          );
    1.63  
    1.64          pack();
    1.65      }// </editor-fold>//GEN-END:initComponents
    1.66  
    1.67 -    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    1.68 +    private void nahratDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nahratDataActionPerformed
    1.69  	Konvertor k = new Konvertor(jdbcZdroj.getText(), jdbcCil.getText(), this);
    1.70  	k.konvertuj();
    1.71 -    }//GEN-LAST:event_jButton1ActionPerformed
    1.72 +    }//GEN-LAST:event_nahratDataActionPerformed
    1.73  
    1.74      /**
    1.75       * @param args the command line arguments
    1.76 @@ -147,12 +148,12 @@
    1.77  	}
    1.78      }
    1.79      // Variables declaration - do not modify//GEN-BEGIN:variables
    1.80 -    private javax.swing.JButton jButton1;
    1.81      private javax.swing.JLabel jLabel1;
    1.82      private javax.swing.JLabel jLabel2;
    1.83      private javax.swing.JScrollPane jScrollPane1;
    1.84      private javax.swing.JTextField jdbcCil;
    1.85      private javax.swing.JTextField jdbcZdroj;
    1.86 +    private javax.swing.JButton nahratData;
    1.87      private javax.swing.JTextArea vystup;
    1.88      // End of variables declaration//GEN-END:variables
    1.89