vyhození zbytečností
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed Jan 05 14:19:11 2011 +0100 (2011-01-05)
changeset 6ca5b667fd910
parent 5 bea5d9e11d37
child 7 66667bb5a6cc
vyhození zbytečností
java/SuperPostak/src/cz/frantovo/superPostak/GrafPokus.form
java/SuperPostak/src/cz/frantovo/superPostak/GrafPokus.java
java/SuperPostak/src/cz/frantovo/superPostak/Pokus.java
java/SuperPostak/src/cz/frantovo/superPostak/TODO.txt
     1.1 --- a/java/SuperPostak/src/cz/frantovo/superPostak/GrafPokus.form	Mon Sep 27 19:04:50 2010 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,59 +0,0 @@
     1.4 -<?xml version="1.0" encoding="UTF-8" ?>
     1.5 -
     1.6 -<Form version="1.3" maxVersion="1.5" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
     1.7 -  <Properties>
     1.8 -    <Property name="defaultCloseOperation" type="int" value="3"/>
     1.9 -  </Properties>
    1.10 -  <SyntheticProperties>
    1.11 -    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
    1.12 -  </SyntheticProperties>
    1.13 -  <AuxValues>
    1.14 -    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
    1.15 -    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
    1.16 -    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
    1.17 -    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
    1.18 -    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
    1.19 -    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
    1.20 -    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
    1.21 -    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
    1.22 -    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
    1.23 -  </AuxValues>
    1.24 -
    1.25 -  <Layout>
    1.26 -    <DimensionLayout dim="0">
    1.27 -      <Group type="103" groupAlignment="0" attributes="0">
    1.28 -          <Group type="102" alignment="0" attributes="0">
    1.29 -              <EmptySpace max="-2" attributes="0"/>
    1.30 -              <Component id="mujGraf" max="32767" attributes="0"/>
    1.31 -              <EmptySpace max="-2" attributes="0"/>
    1.32 -          </Group>
    1.33 -      </Group>
    1.34 -    </DimensionLayout>
    1.35 -    <DimensionLayout dim="1">
    1.36 -      <Group type="103" groupAlignment="0" attributes="0">
    1.37 -          <Group type="102" alignment="0" attributes="0">
    1.38 -              <EmptySpace max="-2" attributes="0"/>
    1.39 -              <Component id="mujGraf" max="32767" attributes="0"/>
    1.40 -              <EmptySpace max="-2" attributes="0"/>
    1.41 -          </Group>
    1.42 -      </Group>
    1.43 -    </DimensionLayout>
    1.44 -  </Layout>
    1.45 -  <SubComponents>
    1.46 -    <Container class="org.jdesktop.swingx.JXGraph" name="mujGraf">
    1.47 -
    1.48 -      <Layout>
    1.49 -        <DimensionLayout dim="0">
    1.50 -          <Group type="103" groupAlignment="0" attributes="0">
    1.51 -              <EmptySpace min="0" pref="400" max="32767" attributes="0"/>
    1.52 -          </Group>
    1.53 -        </DimensionLayout>
    1.54 -        <DimensionLayout dim="1">
    1.55 -          <Group type="103" groupAlignment="0" attributes="0">
    1.56 -              <EmptySpace min="0" pref="400" max="32767" attributes="0"/>
    1.57 -          </Group>
    1.58 -        </DimensionLayout>
    1.59 -      </Layout>
    1.60 -    </Container>
    1.61 -  </SubComponents>
    1.62 -</Form>
     2.1 --- a/java/SuperPostak/src/cz/frantovo/superPostak/GrafPokus.java	Mon Sep 27 19:04:50 2010 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,91 +0,0 @@
     2.4 -/*
     2.5 - * GrafPokus.java
     2.6 - *
     2.7 - * Created on 7. prosinec 2007, 22:33
     2.8 - */
     2.9 -
    2.10 -package cz.frantovo.superPostak;
    2.11 -
    2.12 -import java.awt.Color;
    2.13 -import org.jdesktop.swingx.JXGraph.Plot;
    2.14 -
    2.15 -/**
    2.16 - * Tohle sem nepatří ;-)
    2.17 - * @author  fiki
    2.18 - */
    2.19 -public class GrafPokus extends javax.swing.JFrame {
    2.20 -    private static final long serialVersionUID = 5745756301932587174L;
    2.21 -    
    2.22 -    /** Creates new form GrafPokus */
    2.23 -    public GrafPokus() {
    2.24 -        initComponents();
    2.25 -        
    2.26 -        mujGraf.addPlots(Color.GREEN, new Plot(){
    2.27 -
    2.28 -            @Override
    2.29 -            public double compute(double value) {
    2.30 -                return value * value;
    2.31 -            }
    2.32 -        
    2.33 -        });
    2.34 -    }
    2.35 -    
    2.36 -    /** This method is called from within the constructor to
    2.37 -     * initialize the form.
    2.38 -     * WARNING: Do NOT modify this code. The content of this method is
    2.39 -     * always regenerated by the Form Editor.
    2.40 -     */
    2.41 -    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    2.42 -    private void initComponents() {
    2.43 -
    2.44 -        mujGraf = new org.jdesktop.swingx.JXGraph();
    2.45 -
    2.46 -        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    2.47 -
    2.48 -        javax.swing.GroupLayout mujGrafLayout = new javax.swing.GroupLayout(mujGraf);
    2.49 -        mujGraf.setLayout(mujGrafLayout);
    2.50 -        mujGrafLayout.setHorizontalGroup(
    2.51 -            mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    2.52 -            .addGap(0, 465, Short.MAX_VALUE)
    2.53 -        );
    2.54 -        mujGrafLayout.setVerticalGroup(
    2.55 -            mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    2.56 -            .addGap(0, 422, Short.MAX_VALUE)
    2.57 -        );
    2.58 -
    2.59 -        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    2.60 -        getContentPane().setLayout(layout);
    2.61 -        layout.setHorizontalGroup(
    2.62 -            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    2.63 -            .addGroup(layout.createSequentialGroup()
    2.64 -                .addContainerGap()
    2.65 -                .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    2.66 -                .addContainerGap())
    2.67 -        );
    2.68 -        layout.setVerticalGroup(
    2.69 -            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    2.70 -            .addGroup(layout.createSequentialGroup()
    2.71 -                .addContainerGap()
    2.72 -                .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    2.73 -                .addContainerGap())
    2.74 -        );
    2.75 -
    2.76 -        pack();
    2.77 -    }// </editor-fold>//GEN-END:initComponents
    2.78 -    
    2.79 -    /**
    2.80 -     * @param args the command line arguments
    2.81 -     */
    2.82 -    public static void main(String args[]) {
    2.83 -        java.awt.EventQueue.invokeLater(new Runnable() {
    2.84 -            public void run() {
    2.85 -                new GrafPokus().setVisible(true);
    2.86 -            }
    2.87 -        });
    2.88 -    }
    2.89 -    
    2.90 -    // Variables declaration - do not modify//GEN-BEGIN:variables
    2.91 -    private org.jdesktop.swingx.JXGraph mujGraf;
    2.92 -    // End of variables declaration//GEN-END:variables
    2.93 -    
    2.94 -}
     3.1 --- a/java/SuperPostak/src/cz/frantovo/superPostak/Pokus.java	Mon Sep 27 19:04:50 2010 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,43 +0,0 @@
     3.4 -package cz.frantovo.superPostak;
     3.5 -
     3.6 -import java.util.Properties;
     3.7 -import javax.mail.Message;
     3.8 -import javax.mail.Session;
     3.9 -import javax.mail.Transport;
    3.10 -import javax.mail.internet.InternetAddress;
    3.11 -import javax.mail.internet.MimeMessage;
    3.12 -
    3.13 -/**
    3.14 - *
    3.15 - * @author fiki
    3.16 - */
    3.17 -public class Pokus {
    3.18 -    
    3.19 -    private static Session smtpSession;
    3.20 -    
    3.21 -    public static void main (String[] args) {
    3.22 -        Properties props = System.getProperties();
    3.23 -	props.put("mail.smtp.host", "frantovo.cz");
    3.24 -	//PopUpAuthenticator auth = new PopUpAuthenticator();
    3.25 -	smtpSession = Session.getInstance(props, null);
    3.26 -        
    3.27 -        try {
    3.28 -	    MimeMessage message = new MimeMessage(smtpSession);
    3.29 -	    message.setFrom(new InternetAddress("java@frantovo.cz", "SuperPošťák"));
    3.30 -	    message.addRecipient(Message.RecipientType.TO,
    3.31 -	    new InternetAddress("informace@frantovo.cz", "František Kučera"));
    3.32 -	    message.setSubject("Předmět zprávy");
    3.33 -	    message.setText("Ahoj, jak se máš? šřtžěýžééšž Java WebStart");
    3.34 -	    
    3.35 -
    3.36 -	    Transport.send(message);
    3.37 -	    
    3.38 -	} catch (Exception e) {
    3.39 -	    
    3.40 -	    e.printStackTrace();
    3.41 -	}
    3.42 -    
    3.43 -    
    3.44 -    }
    3.45 -
    3.46 -}
     4.1 --- a/java/SuperPostak/src/cz/frantovo/superPostak/TODO.txt	Mon Sep 27 19:04:50 2010 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,30 +0,0 @@
     4.4 -    Přidat dotaz - odsouhlasení před odesláním
     4.5 -    Export adres
     4.6 -    Import adres
     4.7 -    Zobrazení adres
     4.8 -    Editovatelnost seznamů (zapnuto/vypnuto)
     4.9 -    SQL připojení
    4.10 -    SQL načítání
    4.11 -    Odesílací třída
    4.12 -    HTML zprávy
    4.13 -    SMTP přihlašování
    4.14 -    SMTP SSL
    4.15 -    Dělení na dávky
    4.16 -Obojetný formát zpráv: html + text
    4.17 -
    4.18 -
    4.19 -    Kontrola vstupu: adresy se zavináčem, délky...
    4.20 -Inteligentní interpret chybových hlášek
    4.21 -
    4.22 -Nápověda u nastavení serveru
    4.23 -"O aplikaci"
    4.24 -Možnost neukládání hesla k DB, případně šifrování
    4.25 -Dokumentace - DocBook - JavaHelp
    4.26 -    
    4.27 -
    4.28 -Odebírání více příjemců současně (multiselekt v tabulce)
    4.29 -automatické doplňování dříve napsaných textů (jména, adresy)
    4.30 -Řádek s logy - místo dialogů
    4.31 -Zvýrazňování SQL syntaxe
    4.32 -
    4.33 -Refaktoring JFTable
    4.34 \ No newline at end of file