/* * About.java * * Created on 04/11/2004 */ /** * * @author Ben Lin */ public class About extends javax.swing.JDialog { /** Creates new form About */ public About(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); } /** 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 textAbout = new javax.swing.JTextArea(); OK = new javax.swing.JButton(); getContentPane().setLayout(null); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("About"); setResizable(false); textAbout.setFont(new java.awt.Font("Courier", 0, 14)); textAbout.setForeground(new java.awt.Color(255, 0, 0)); textAbout.setText("My converter V1.0\n\nAuthor: Ben Lin\nUniversity of Sunderlnad, UK"); textAbout.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION); textAbout.setEditable(false); getContentPane().add(textAbout); textAbout.setBounds(20, 40, 350, 80); OK.setFont(new java.awt.Font("Times New Roman", 0, 12)); OK.setMnemonic('o'); OK.setText("OK"); OK.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { OKActionPerformed(evt); } }); getContentPane().add(OK); OK.setBounds(160, 140, 60, 23); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-398)/2, (screenSize.height-218)/2, 398, 218); }//GEN-END:initComponents private void OKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKActionPerformed setVisible(false); dispose(); // TODO add your handling code here: }//GEN-LAST:event_OKActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton OK; private javax.swing.JTextArea textAbout; // End of variables declaration//GEN-END:variables }