/*
 * AboutDialog.java
 *
 * Created on 10. unor 2006, 15:58
 */

package cz.pcland.gavisualization;
import javax.swing.*;
import java.awt.*;
import java.util.*;
/**
 *
 * @author  petr
 */
public class AboutDialog extends JDialog  {
    private Frame fr;
    /** Creates new form AboutDialog */
    public AboutDialog(Frame parent, boolean modal) {
        super(parent, "About this program ...", modal);
        fr = parent;
        initComponents();
        //setSize(150,125);
    }
    
    public Dimension getPreferredSize() {	
        return new Dimension(357, 228);	  	 
    }
    
    /** 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.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jButton1 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();

        getContentPane().setLayout(null);

        setModal(true);
        jButton1.setText("OK");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        getContentPane().add(jButton1);
        jButton1.setBounds(260, 160, 70, 24);

        jLabel2.setText("Created by Petr Benhak, 2006");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(10, 140, 270, 20);

        jLabel4.setText("CVUT FEL");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(10, 160, 110, 14);

        jLabel1.setText("About program ...");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 10, 120, 14);

        getContentPane().add(jLabel3);
        jLabel3.setBounds(10, 30, 0, 0);

        jLabel5.setText("Genetic algorithms visualizer");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(10, 30, 190, 14);

    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
        dispose(); // Closes the dialog
    }//GEN-LAST:event_jButton1ActionPerformed
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    // End of variables declaration//GEN-END:variables
    
}
