Скачиваний:
31
Добавлен:
03.06.2014
Размер:
2.39 Кб
Скачать
/*
* Finished.java
*
* Created on 6 Ноябрь 2005 г., 2:14
*/

package architecture;

/**
*
* @author Сергей Барыкин
*/
public class Finished extends java.awt.Dialog {

/** Creates new form Finished */
public Finished(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
this.setSize(400,200);
this.setVisible(true);
}

/** 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.
*/
private void initComponents() {//GEN-BEGIN:initComponents
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();

addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
closeDialog(evt);
}
});

jPanel1.setLayout(null);

jLabel1.setFont(new java.awt.Font("MS Sans Serif", 0, 18));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("Program Finished");
jPanel1.add(jLabel1);
jLabel1.setBounds(0, 20, 400, 30);

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

jPanel1.add(jButton1);
jButton1.setBounds(120, 80, 160, 23);

add(jPanel1, java.awt.BorderLayout.CENTER);

pack();
}//GEN-END:initComponents

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
setVisible(false);
dispose();
}//GEN-LAST:event_jButton1ActionPerformed

/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
setVisible(false);
dispose();
}//GEN-LAST:event_closeDialog


// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
// End of variables declaration//GEN-END:variables

}
Соседние файлы в папке architecture