diff -r 000000000000 -r e76872ad5226 java/SuperPostak/src/cz/frantovo/superPostak/ZobrazovacAdres.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SuperPostak/src/cz/frantovo/superPostak/ZobrazovacAdres.java Sun Nov 23 22:19:20 2008 +0100 @@ -0,0 +1,77 @@ +/* + * ZobrazovacAdres.java + * + * Created on 18. Ășnor 2008, 0:13 + */ + +package cz.frantovo.superPostak; + +import cz.frantovo.postak.InternetAddressKomu; +import java.util.Collection; + +/** + * + * @author fiki + */ +public class ZobrazovacAdres extends javax.swing.JDialog { + + /** Creates new form ZobrazovacAdres */ + public ZobrazovacAdres(java.awt.Frame parent, boolean modal) { + super(parent, modal); + initComponents(); + panelAdres.setEditovatelny(false); + } + + public void setAdresy(Collection adresy) { + panelAdres.setAdresy(adresy); + } + + /** This method is called from within the constructor to + * initialize the form. + * WARNING: Do NOT modify this code. The content of this method is + * always regenerated by the Form Editor. + */ + // //GEN-BEGIN:initComponents + private void initComponents() { + + panelAdres = new cz.frantovo.superPostak.PanelPrijemcu(); + + setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); + setTitle("Seznam adres"); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 422, Short.MAX_VALUE) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE) + ); + + pack(); + }// //GEN-END:initComponents + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + ZobrazovacAdres dialog = new ZobrazovacAdres(new javax.swing.JFrame(), true); + dialog.addWindowListener(new java.awt.event.WindowAdapter() { + public void windowClosing(java.awt.event.WindowEvent e) { + System.exit(0); + } + }); + dialog.setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private cz.frantovo.superPostak.PanelPrijemcu panelAdres; + // End of variables declaration//GEN-END:variables + +}