home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / Sharpdev / 099bsetup.exe / JavaApplicationProject.xpt < prev    next >
Extensible Markup Language  |  2003-09-21  |  5KB  |  161 lines

  1. <?xml version="1.0"?>
  2. <Template originator   = "Gary Gray" 
  3.           created      = "09/05/2001"
  4.           lastModified = "02/01/2003">
  5.     
  6.     <!-- Template Header -->
  7.     <TemplateConfiguration>
  8.         <Name>${res:Templates.Project.Java.JavaAWTProject.Name}</Name>
  9.         <Category>Java</Category>
  10.         <Icon>Java.Project.FullProject</Icon>
  11.         <LanguageName>Java</LanguageName>
  12.         <Description>${res:Templates.Project.Java.JavaAWTProject.Description}</Description>
  13.     </TemplateConfiguration>
  14.     
  15.     <!-- Actions -->
  16.     <Actions>
  17.         <Open filename = "application.java"/>
  18.     </Actions>
  19.  
  20.     <!-- Template Content -->
  21.     <Combine name = "${ProjectName}" directory = ".">
  22.         <Options>
  23.             <StartupProject>${ProjectName}</StartupProject>
  24.         </Options>
  25.         
  26.         <Project name = "${ProjectName}" directory = ".">
  27.             <Options Target = "Class" PauseConsoleOutput = "False" ClassPath = "abc" MainClass ="application" />
  28.     
  29.             <Files>
  30.                 <File name = "application.java">
  31. <![CDATA[
  32. /*
  33.  * application.java
  34.  *
  35.  * created on ${Date} at ${Time}
  36.  */
  37.  
  38. public class application extends javax.swing.JFrame {
  39.  
  40.     /** Creates new form application */
  41.     public application() {
  42.         initComponents();
  43.     }
  44.  
  45.     /** This method is called from within the constructor to
  46.      * initialize the form.
  47.      * WARNING: Do NOT modify this code. The content of this method is
  48.      * always regenerated by the Form Editor.
  49.      */
  50.     private void initComponents() {//GEN-BEGIN:initComponents
  51.         menuBar = new javax.swing.JMenuBar();
  52.  
  53.         fileMenu = new javax.swing.JMenu();
  54.         fileMenu.setText("File");
  55.  
  56.         openMenuItem = new javax.swing.JMenuItem();
  57.         openMenuItem.setText("Open");
  58.  
  59.         fileMenu.add(openMenuItem);
  60.         saveMenuItem = new javax.swing.JMenuItem();
  61.         saveMenuItem.setText("Save");
  62.  
  63.         fileMenu.add(saveMenuItem);
  64.         saveAsMenuItem = new javax.swing.JMenuItem();
  65.         saveAsMenuItem.setText("Save As ...");
  66.  
  67.         fileMenu.add(saveAsMenuItem);
  68.         exitMenuItem = new javax.swing.JMenuItem();
  69.         exitMenuItem.setText("Exit");
  70.         exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
  71.                                            public void actionPerformed(java.awt.event.ActionEvent evt) {
  72.                                                exitMenuItemActionPerformed(evt);
  73.                                            }
  74.                                        }
  75.                                       );
  76.  
  77.         fileMenu.add(exitMenuItem);
  78.         menuBar.add(fileMenu);
  79.         editMenu = new javax.swing.JMenu();
  80.         editMenu.setText("Edit");
  81.  
  82.         cutMenuItem = new javax.swing.JMenuItem();
  83.         cutMenuItem.setText("Cut");
  84.  
  85.         editMenu.add(cutMenuItem);
  86.         copyMenuItem = new javax.swing.JMenuItem();
  87.         copyMenuItem.setText("Copy");
  88.  
  89.         editMenu.add(copyMenuItem);
  90.         pasteMenuItem = new javax.swing.JMenuItem();
  91.         pasteMenuItem.setText("Paste");
  92.  
  93.         editMenu.add(pasteMenuItem);
  94.         deleteMenuItem = new javax.swing.JMenuItem();
  95.         deleteMenuItem.setText("Delete");
  96.  
  97.         editMenu.add(deleteMenuItem);
  98.         menuBar.add(editMenu);
  99.         helpMenu = new javax.swing.JMenu();
  100.         helpMenu.setText("Help");
  101.  
  102.         contentsMenuItem = new javax.swing.JMenuItem();
  103.         contentsMenuItem.setText("Contents");
  104.  
  105.         helpMenu.add(contentsMenuItem);
  106.         aboutMenuItem = new javax.swing.JMenuItem();
  107.         aboutMenuItem.setText("About");
  108.  
  109.         helpMenu.add(aboutMenuItem);
  110.         menuBar.add(helpMenu);
  111.         addWindowListener(new java.awt.event.WindowAdapter() {
  112.                               public void windowClosing(java.awt.event.WindowEvent evt) {
  113.                                   exitForm(evt);
  114.                               }
  115.                           }
  116.                          );
  117.  
  118.         setJMenuBar(menuBar);
  119.  
  120.         pack();
  121.     }//GEN-END:initComponents
  122.  
  123.     private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
  124.         System.exit(0);
  125.     }//GEN-LAST:event_exitMenuItemActionPerformed
  126.  
  127.     /** Exit the Application */
  128.     private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
  129.         System.exit(0);
  130.     }//GEN-LAST:event_exitForm
  131.  
  132.     /**
  133.     * param args the command line arguments
  134.     */
  135.     public static void main(String args[]) {
  136.         new application().show();
  137.     }
  138.  
  139.     // Variables declaration - do not modify//GEN-BEGIN:variables
  140.     private javax.swing.JMenuBar menuBar;
  141.     private javax.swing.JMenu fileMenu;
  142.     private javax.swing.JMenuItem openMenuItem;
  143.     private javax.swing.JMenuItem saveMenuItem;
  144.     private javax.swing.JMenuItem saveAsMenuItem;
  145.     private javax.swing.JMenuItem exitMenuItem;
  146.     private javax.swing.JMenu editMenu;
  147.     private javax.swing.JMenuItem cutMenuItem;
  148.     private javax.swing.JMenuItem copyMenuItem;
  149.     private javax.swing.JMenuItem pasteMenuItem;
  150.     private javax.swing.JMenuItem deleteMenuItem;
  151.     private javax.swing.JMenu helpMenu;
  152.     private javax.swing.JMenuItem contentsMenuItem;
  153.     private javax.swing.JMenuItem aboutMenuItem;
  154.     // End of variables declaration//GEN-END:variables
  155.  
  156. }]]></File>        
  157.             </Files>
  158.         </Project>
  159.     </Combine>
  160. </Template>
  161.