home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / sharpdevelop / 087cSetup.exe / data / templates / file / JavaFrame.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-03-20  |  1.8 KB  |  68 lines

  1. <?xml version="1.0"?>
  2. <Template Originator="Gary Gray" Language="JAVA" Created="09/05/2001" LastModified="09/05/2001">
  3.     
  4.     <TemplateConfiguration>
  5.            <Name>Java AWT Frame</Name>
  6.            <Icon>JAVA.Project.JavaProjectIcon</Icon>
  7.            <Category>Java</Category>
  8.            <LanguageName>Java</LanguageName>
  9.            <Description>A Basic Java Frame</Description>
  10.     </TemplateConfiguration>
  11.     
  12.     <TemplateFiles>
  13.            <File DefaultExtension=".java" DefaultName="Frame">
  14.  
  15. <![CDATA[
  16. /*
  17.  * frame.java
  18.  *
  19.  * created on ${Date} at ${Time}
  20.  */
  21.  
  22. public class frame extends java.awt.Frame {
  23.  
  24.     /** Creates new form frame */
  25.     public frame() {
  26.         initComponents();
  27.     }
  28.  
  29.     /** This method is called from within the constructor to
  30.      * initialize the form.
  31.      * WARNING: Do NOT modify this code. The content of this method is
  32.      * always regenerated by the Form Editor.
  33.      */
  34.     private void initComponents() {//GEN-BEGIN:initComponents
  35.         addWindowListener(new java.awt.event.WindowAdapter() {
  36.                               public void windowClosing(java.awt.event.WindowEvent evt) {
  37.                                   exitForm(evt);
  38.                               }
  39.                           }
  40.                          );
  41.         pack();
  42.     }//GEN-END:initComponents
  43.  
  44.     /** Exit the Application */
  45.     private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
  46.         System.exit(0);
  47.     }//GEN-LAST:event_exitForm
  48.  
  49.     /**
  50.     * param args the command line arguments
  51.     */
  52.     public static void main(String args[]) {
  53.         new frame().show();
  54.     }
  55.  
  56.  
  57.     // Variables declaration - do not modify//GEN-BEGIN:variables
  58.     // End of variables declaration//GEN-END:variables
  59.  
  60. }
  61. ]]>
  62.                 </File>
  63.     </TemplateFiles>
  64.     
  65.     <FileOptions/>
  66.     
  67. </Template>
  68.