java/SuperPostak/src/cz/frantovo/superPostak/SuperPostak.java
changeset 3 03d27d3b3f7b
parent 0 e76872ad5226
child 5 bea5d9e11d37
     1.1 --- a/java/SuperPostak/src/cz/frantovo/superPostak/SuperPostak.java	Sun Nov 23 22:19:20 2008 +0100
     1.2 +++ b/java/SuperPostak/src/cz/frantovo/superPostak/SuperPostak.java	Sat Feb 28 17:57:14 2009 +0100
     1.3 @@ -32,13 +32,11 @@
     1.4  import javax.swing.JDialog;
     1.5  import javax.swing.JOptionPane;
     1.6  import javax.swing.JTextArea;
     1.7 -import javax.swing.LookAndFeel;
     1.8  import javax.swing.UIManager;
     1.9  import javax.swing.UnsupportedLookAndFeelException;
    1.10  import org.jdesktop.swingx.JXErrorPane;
    1.11  import org.jdesktop.swingx.JXTaskPaneContainer;
    1.12  import org.jdesktop.swingx.error.ErrorInfo;
    1.13 -import org.jvnet.substance.skin.SubstanceBusinessBlueSteelLookAndFeel;
    1.14  
    1.15  /**
    1.16   *
    1.17 @@ -52,6 +50,7 @@
    1.18      private static final String NASTAVENI_SLOZKA = ".SuperPostak";
    1.19      private static final String DOMACI_ADRESAR = System.getProperty("user.home");
    1.20      private static Logger log = Logger.getLogger(SuperPostak.class.getName());
    1.21 +    private static final long serialVersionUID = -7026850569575604048L;
    1.22      private Nastaveni nastaveni = new Nastaveni();
    1.23      private Postak postak = new Postak(nastaveni);
    1.24  
    1.25 @@ -81,7 +80,7 @@
    1.26          if (ladit) {
    1.27              nastavLadiciHodnoty();
    1.28          }
    1.29 -        
    1.30 +
    1.31          if (exit) {
    1.32              setDefaultCloseOperation(EXIT_ON_CLOSE);
    1.33          }
    1.34 @@ -918,7 +917,6 @@
    1.35          pack();
    1.36      }// </editor-fold>//GEN-END:initComponents
    1.37      private void vstupPredmetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vstupPredmetActionPerformed
    1.38 -        
    1.39  }//GEN-LAST:event_vstupPredmetActionPerformed
    1.40  
    1.41      private void lnTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lnTextActionPerformed
    1.42 @@ -1019,7 +1017,7 @@
    1.43              zobrazInformacniDialog("Odesláno", "Zkušební zpráva byla odeslána.\nPočet adresátů: " + zprava.getPrijemci().size(), true);
    1.44          } catch (Exception e) {
    1.45              zobrazChybovyDialog("Zkušební zprávu se nepodařilo odeslat", e, Level.SEVERE, true);
    1.46 -        }        
    1.47 +        }
    1.48      }//GEN-LAST:event_rozeslatZkusebniTlacitkoActionPerformed
    1.49  
    1.50      private void vyzkousetPripojeniTlacitkoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vyzkousetPripojeniTlacitkoActionPerformed
    1.51 @@ -1138,7 +1136,7 @@
    1.52      public static void main(String args[]) {
    1.53          final boolean ladit = (args != null && args.length > 0 && args[0].equals("ladit"));
    1.54  
    1.55 -        /**try {
    1.56 +        try {
    1.57              //LookAndFeel laf = UIManager.getLookAndFeel();
    1.58  
    1.59              //laf = new SubstanceLookAndFeel();
    1.60 @@ -1155,14 +1153,14 @@
    1.61              log.log(Level.SEVERE, null, ex);
    1.62          } catch (UnsupportedLookAndFeelException ex) {
    1.63              log.log(Level.SEVERE, null, ex);
    1.64 -        } */
    1.65 +        }
    1.66  
    1.67          java.awt.EventQueue.invokeLater(new Runnable() {
    1.68  
    1.69              public void run() {
    1.70                  new SuperPostak(ladit, true).setVisible(true);
    1.71              }
    1.72 -            });
    1.73 +        });
    1.74      }
    1.75      // Variables declaration - do not modify//GEN-BEGIN:variables
    1.76      private javax.swing.JLabel jLabel1;