From: Simon F. <sim...@us...> - 2005-03-17 04:49:13
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22340/cs199mbc/GUI Modified Files: frmHelp.java JCrypt.java Log Message: Added copyright statements Index: JCrypt.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/GUI/JCrypt.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JCrypt.java 11 Mar 2005 04:30:41 -0000 1.1 --- JCrypt.java 17 Mar 2005 04:48:48 -0000 1.2 *************** *** 1,20 **** /* ! JCrypt Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. ! You should have received a copy of the GNU Lesser General Public ! License along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ package cs199mbc.GUI; --- 1,20 ---- /* ! JCrypt Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. ! You should have received a copy of the GNU Lesser General Public ! License along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ package cs199mbc.GUI; *************** *** 26,76 **** public class JCrypt { ! boolean packFrame = false; ! /** ! * Construct and show the application. ! */ ! public JCrypt() { ! frmMain frame = new frmMain(); ! // Validate frames that have preset sizes ! // Pack frames that have useful preferred size info, e.g. from their layout ! if (packFrame) { ! frame.pack(); ! } else { ! frame.validate(); ! } ! // Center the window ! Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); ! Dimension frameSize = frame.getSize(); ! if (frameSize.height > screenSize.height) { ! frameSize.height = screenSize.height; ! } ! if (frameSize.width > screenSize.width) { ! frameSize.width = screenSize.width; ! } ! frame.setLocation((screenSize.width - frameSize.width) / 2, ! (screenSize.height - frameSize.height) / 2); ! frame.setVisible(true); ! } ! /** ! * Application entry point. ! * ! * @param args String[] ! */ ! public static void main(String[] args) { ! SwingUtilities.invokeLater(new Runnable() { ! public void run() { ! try { ! UIManager.setLookAndFeel(UIManager. ! getSystemLookAndFeelClassName()); ! } catch (Exception exception) { ! exception.printStackTrace(); ! } ! new JCrypt(); ! } ! }); ! } } \ No newline at end of file --- 26,78 ---- public class JCrypt { ! boolean packFrame = false; ! /** ! * Construct and show the application. ! */ ! public JCrypt() { ! frmMain frame = new frmMain(); ! // Validate frames that have preset sizes ! // Pack frames that have useful preferred size info, e.g. from their ! // layout ! if (packFrame) { ! frame.pack(); ! } else { ! frame.validate(); ! } ! // Center the window ! Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); ! Dimension frameSize = frame.getSize(); ! if (frameSize.height > screenSize.height) { ! frameSize.height = screenSize.height; ! } ! if (frameSize.width > screenSize.width) { ! frameSize.width = screenSize.width; ! } ! frame.setLocation((screenSize.width - frameSize.width) / 2, ! (screenSize.height - frameSize.height) / 2); ! frame.setVisible(true); ! } ! /** ! * Application entry point. ! * ! * @param args ! * String[] ! */ ! public static void main(String[] args) { ! SwingUtilities.invokeLater(new Runnable() { ! public void run() { ! try { ! UIManager.setLookAndFeel(UIManager ! .getSystemLookAndFeelClassName()); ! } catch (Exception exception) { ! exception.printStackTrace(); ! } ! new JCrypt(); ! } ! }); ! } } \ No newline at end of file Index: frmHelp.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/GUI/frmHelp.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** frmHelp.java 15 Mar 2005 00:27:59 -0000 1.2 --- frmHelp.java 17 Mar 2005 04:48:48 -0000 1.3 *************** *** 1,5 **** /* frmHelp Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* frmHelp Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or |