01: /*
02: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/StripifyWaitDialog.java,v 1.1 2005/04/20 21:04:22 paulby Exp $
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is Java 3D(tm) Fly Through.
11: * The Initial Developer of the Original Code is Paul Byrne.
12: * Portions created by Paul Byrne are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Paul Byrne.
16: *
17: **/
18: package org.jdesktop.j3dfly;
19:
20: /**
21: *
22: *
23: * @author Paul Byrne
24: * @version $Revision: 1.1 $
25: */
26: public class StripifyWaitDialog extends javax.swing.JDialog {
27:
28: /** Creates new form WaitDialog */
29: public StripifyWaitDialog(java.awt.Frame parent, boolean modal) {
30: super (parent, modal);
31: initComponents();
32: pack();
33: }
34:
35: /** This method is called from within the constructor to
36: * initialize the form.
37: * WARNING: Do NOT modify this code. The content of this method is
38: * always regenerated by the FormEditor.
39: */
40: private void initComponents() {//GEN-BEGIN:initComponents
41: java.awt.GridBagConstraints gridBagConstraints;
42:
43: jPanel1 = new javax.swing.JPanel();
44: jLabel1 = new javax.swing.JLabel();
45: jLabel2 = new javax.swing.JLabel();
46:
47: setTitle("Please Wait...");
48: addWindowListener(new java.awt.event.WindowAdapter() {
49: public void windowClosing(java.awt.event.WindowEvent evt) {
50: closeDialog(evt);
51: }
52: });
53:
54: jPanel1.setLayout(new java.awt.GridBagLayout());
55:
56: jLabel1.setFont(new java.awt.Font("Dialog", 0, 14));
57: jLabel1.setText("Stripifying TriangleArrays");
58: gridBagConstraints = new java.awt.GridBagConstraints();
59: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
60: gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
61: jPanel1.add(jLabel1, gridBagConstraints);
62:
63: jLabel2.setFont(new java.awt.Font("Dialog", 0, 14));
64: jLabel2.setText("Please Wait...");
65: gridBagConstraints = new java.awt.GridBagConstraints();
66: gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
67: jPanel1.add(jLabel2, gridBagConstraints);
68:
69: getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
70:
71: }//GEN-END:initComponents
72:
73: /** Closes the dialog */
74: private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
75: setVisible(false);
76: dispose();
77: }//GEN-LAST:event_closeDialog
78:
79: // Variables declaration - do not modify//GEN-BEGIN:variables
80: private javax.swing.JPanel jPanel1;
81: private javax.swing.JLabel jLabel2;
82: private javax.swing.JLabel jLabel1;
83: // End of variables declaration//GEN-END:variables
84:
85: }
|