1 package cz.frantovo.superPostak;
3 import cz.frantovo.postak.InternetAddressKomu;
4 import java.util.Collection;
10 public class ZobrazovacAdres extends javax.swing.JDialog {
12 private static final long serialVersionUID = 5084215476284985170L;
14 /** Creates new form ZobrazovacAdres */
15 public ZobrazovacAdres(java.awt.Frame parent, boolean modal) {
18 panelAdres.setEditovatelny(false);
21 public void setAdresy(Collection<InternetAddressKomu> adresy) {
22 panelAdres.setAdresy(adresy);
25 /** This method is called from within the constructor to
26 * initialize the form.
27 * WARNING: Do NOT modify this code. The content of this method is
28 * always regenerated by the Form Editor.
30 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
31 private void initComponents() {
33 panelAdres = new cz.frantovo.superPostak.PanelPrijemcu();
35 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
36 setTitle("Seznam adres");
38 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
39 getContentPane().setLayout(layout);
40 layout.setHorizontalGroup(
41 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
42 .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 422, Short.MAX_VALUE)
44 layout.setVerticalGroup(
45 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
46 .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)
50 }// </editor-fold>//GEN-END:initComponents
53 * @param args the command line arguments
55 public static void main(String args[]) {
56 java.awt.EventQueue.invokeLater(new Runnable() {
59 ZobrazovacAdres dialog = new ZobrazovacAdres(new javax.swing.JFrame(), true);
60 dialog.addWindowListener(new java.awt.event.WindowAdapter() {
63 public void windowClosing(java.awt.event.WindowEvent e) {
67 dialog.setVisible(true);
71 // Variables declaration - do not modify//GEN-BEGIN:variables
72 private cz.frantovo.superPostak.PanelPrijemcu panelAdres;
73 // End of variables declaration//GEN-END:variables