root/java/SuperPostak/src/cz/frantovo/superPostak/ZobrazovacAdres.java @ 0:e76872ad5226

Revision 0:e76872ad5226, 2.5 KB (checked in by František Kučera <franta-hg@…>, 15 years ago)

Přidání SuperPošťáka? do Mercurialu (původně byl v Subversionu)
Postak – základ, knihovna
SuperPostak? – GUI nadstavba
SuperPostak?2 – pokus o implementaci aplikace jako modulu pro Netbeans, POZOR: není přidán do Mercurialu, možná později (pravděpodobně se ale nebude používat)

Line 
1/*
2 * ZobrazovacAdres.java
3 *
4 * Created on 18. únor 2008, 0:13
5 */
6
7package cz.frantovo.superPostak;
8
9import cz.frantovo.postak.InternetAddressKomu;
10import java.util.Collection;
11
12/**
13 *
14 * @author  fiki
15 */
16public class ZobrazovacAdres extends javax.swing.JDialog {
17   
18    /** Creates new form ZobrazovacAdres */
19    public ZobrazovacAdres(java.awt.Frame parent, boolean modal) {
20        super(parent, modal);
21        initComponents();
22        panelAdres.setEditovatelny(false);       
23    }
24   
25    public void setAdresy(Collection<InternetAddressKomu> adresy) {
26        panelAdres.setAdresy(adresy);
27    }   
28   
29    /** This method is called from within the constructor to
30     * initialize the form.
31     * WARNING: Do NOT modify this code. The content of this method is
32     * always regenerated by the Form Editor.
33     */
34    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
35    private void initComponents() {
36
37        panelAdres = new cz.frantovo.superPostak.PanelPrijemcu();
38
39        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
40        setTitle("Seznam adres");
41
42        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
43        getContentPane().setLayout(layout);
44        layout.setHorizontalGroup(
45            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
46            .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 422, Short.MAX_VALUE)
47        );
48        layout.setVerticalGroup(
49            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
50            .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)
51        );
52
53        pack();
54    }// </editor-fold>//GEN-END:initComponents
55   
56    /**
57     * @param args the command line arguments
58     */
59    public static void main(String args[]) {
60        java.awt.EventQueue.invokeLater(new Runnable() {
61            public void run() {
62                ZobrazovacAdres dialog = new ZobrazovacAdres(new javax.swing.JFrame(), true);
63                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
64                    public void windowClosing(java.awt.event.WindowEvent e) {
65                        System.exit(0);
66                    }
67                });
68                dialog.setVisible(true);
69            }
70        });
71    }
72   
73    // Variables declaration - do not modify//GEN-BEGIN:variables
74    private cz.frantovo.superPostak.PanelPrijemcu panelAdres;
75    // End of variables declaration//GEN-END:variables
76   
77}
Note: See TracBrowser for help on using the browser.