1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/SuperPostak/src/cz/frantovo/superPostak/ZobrazovacAdres.java Sun Nov 23 22:19:20 2008 +0100
1.3 @@ -0,0 +1,77 @@
1.4 +/*
1.5 + * ZobrazovacAdres.java
1.6 + *
1.7 + * Created on 18. únor 2008, 0:13
1.8 + */
1.9 +
1.10 +package cz.frantovo.superPostak;
1.11 +
1.12 +import cz.frantovo.postak.InternetAddressKomu;
1.13 +import java.util.Collection;
1.14 +
1.15 +/**
1.16 + *
1.17 + * @author fiki
1.18 + */
1.19 +public class ZobrazovacAdres extends javax.swing.JDialog {
1.20 +
1.21 + /** Creates new form ZobrazovacAdres */
1.22 + public ZobrazovacAdres(java.awt.Frame parent, boolean modal) {
1.23 + super(parent, modal);
1.24 + initComponents();
1.25 + panelAdres.setEditovatelny(false);
1.26 + }
1.27 +
1.28 + public void setAdresy(Collection<InternetAddressKomu> adresy) {
1.29 + panelAdres.setAdresy(adresy);
1.30 + }
1.31 +
1.32 + /** This method is called from within the constructor to
1.33 + * initialize the form.
1.34 + * WARNING: Do NOT modify this code. The content of this method is
1.35 + * always regenerated by the Form Editor.
1.36 + */
1.37 + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
1.38 + private void initComponents() {
1.39 +
1.40 + panelAdres = new cz.frantovo.superPostak.PanelPrijemcu();
1.41 +
1.42 + setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
1.43 + setTitle("Seznam adres");
1.44 +
1.45 + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
1.46 + getContentPane().setLayout(layout);
1.47 + layout.setHorizontalGroup(
1.48 + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
1.49 + .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 422, Short.MAX_VALUE)
1.50 + );
1.51 + layout.setVerticalGroup(
1.52 + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
1.53 + .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)
1.54 + );
1.55 +
1.56 + pack();
1.57 + }// </editor-fold>//GEN-END:initComponents
1.58 +
1.59 + /**
1.60 + * @param args the command line arguments
1.61 + */
1.62 + public static void main(String args[]) {
1.63 + java.awt.EventQueue.invokeLater(new Runnable() {
1.64 + public void run() {
1.65 + ZobrazovacAdres dialog = new ZobrazovacAdres(new javax.swing.JFrame(), true);
1.66 + dialog.addWindowListener(new java.awt.event.WindowAdapter() {
1.67 + public void windowClosing(java.awt.event.WindowEvent e) {
1.68 + System.exit(0);
1.69 + }
1.70 + });
1.71 + dialog.setVisible(true);
1.72 + }
1.73 + });
1.74 + }
1.75 +
1.76 + // Variables declaration - do not modify//GEN-BEGIN:variables
1.77 + private cz.frantovo.superPostak.PanelPrijemcu panelAdres;
1.78 + // End of variables declaration//GEN-END:variables
1.79 +
1.80 +}