001: /*
002: Copyright (C) 2004 David Bucciarelli (davibu@interfree.it)
003:
004: This program is free software; you can redistribute it and/or
005: modify it under the terms of the GNU General Public License
006: as published by the Free Software Foundation; either version 2
007: of the License, or (at your option) any later version.
008:
009: This program is distributed in the hope that it will be useful,
010: but WITHOUT ANY WARRANTY; without even the implied warranty of
011: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: GNU General Public License for more details.
013:
014: You should have received a copy of the GNU General Public License
015: along with this program; if not, write to the Free Software
016: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
017: */
018:
019: package org.homedns.dade.jcgrid.gui;
020:
021: import java.io.*;
022: import java.text.*;
023: import java.util.*;
024: import java.awt.*;
025: import javax.swing.*;
026: import javax.swing.text.*;
027: import javax.swing.table.*;
028:
029: import org.apache.log4j.*;
030:
031: import org.homedns.dade.jcgrid.*;
032:
033: public class guiJCGridAbout extends javax.swing.JDialog {
034: private final static String className = guiJCGridConfig.class
035: .getName();
036: private static Logger log = Logger.getLogger(className);
037: private static Logger logDetail = Logger.getLogger("DETAIL."
038: + className);
039:
040: private static final long serialVersionUID = 1L;
041:
042: private GridConfig gridConfig;
043:
044: public guiJCGridAbout(java.awt.Frame parent, boolean modal) {
045: super (parent, modal);
046:
047: initComponents();
048:
049: lNameVer.setText("JCGrid V" + Version.RELEASE);
050: }
051:
052: /** This method is called from within the constructor to
053: * initialize the form.
054: * WARNING: Do NOT modify this code. The content of this method is
055: * always regenerated by the Form Editor.
056: */
057: private void initComponents() {//GEN-BEGIN:initComponents
058: java.awt.GridBagConstraints gridBagConstraints;
059:
060: lNameVer = new javax.swing.JLabel();
061: jLabel2 = new javax.swing.JLabel();
062: jLabel3 = new javax.swing.JLabel();
063: jLabel4 = new javax.swing.JLabel();
064:
065: getContentPane().setLayout(new java.awt.GridBagLayout());
066:
067: setTitle("JCGrid Settings");
068: setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
069: lNameVer.setFont(new java.awt.Font("Dialog", 1, 24));
070: lNameVer.setText("JCGrid");
071: lNameVer.setForeground(java.awt.SystemColor.activeCaption);
072: getContentPane().add(lNameVer,
073: new java.awt.GridBagConstraints());
074:
075: jLabel2.setFont(new java.awt.Font("Dialog", 2, 18));
076: jLabel2.setText("Java Grid Computing Framework");
077: gridBagConstraints = new java.awt.GridBagConstraints();
078: gridBagConstraints.gridx = 0;
079: gridBagConstraints.gridy = 1;
080: getContentPane().add(jLabel2, gridBagConstraints);
081:
082: jLabel3.setFont(new java.awt.Font("Dialog", 2, 18));
083: jLabel3.setText("http:///jcgrid.sourceforge.com");
084: gridBagConstraints = new java.awt.GridBagConstraints();
085: gridBagConstraints.gridx = 0;
086: gridBagConstraints.gridy = 2;
087: gridBagConstraints.insets = new java.awt.Insets(50, 0, 0, 0);
088: getContentPane().add(jLabel3, gridBagConstraints);
089:
090: jLabel4.setFont(new java.awt.Font("Dialog", 2, 14));
091: jLabel4
092: .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
093: jLabel4.setText("Written by David Bucciarelli");
094: jLabel4.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
095: gridBagConstraints = new java.awt.GridBagConstraints();
096: gridBagConstraints.gridx = 0;
097: gridBagConstraints.gridy = 3;
098: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
099: gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
100: gridBagConstraints.weightx = 1.0;
101: gridBagConstraints.weighty = 1.0;
102: getContentPane().add(jLabel4, gridBagConstraints);
103:
104: java.awt.Dimension screenSize = java.awt.Toolkit
105: .getDefaultToolkit().getScreenSize();
106: setBounds((screenSize.width - 400) / 2,
107: (screenSize.height - 219) / 2, 400, 219);
108: }//GEN-END:initComponents
109:
110: // Variables declaration - do not modify//GEN-BEGIN:variables
111: private javax.swing.JLabel jLabel2;
112: private javax.swing.JLabel jLabel3;
113: private javax.swing.JLabel jLabel4;
114: private javax.swing.JLabel lNameVer;
115: // End of variables declaration//GEN-END:variables
116:
117: }
|