001: /*
002: * $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/scenegrapheditor/nodeeditors/panels/TableTest.java,v 1.1 2005/04/20 22:21:10 paulby Exp $
003: *
004: * Sun Public License Notice
005: *
006: * The contents of this file are subject to the Sun Public License Version
007: * 1.0 (the "License"). You may not use this file except in compliance with
008: * the License. A copy of the License is available at http://www.sun.com/
009: *
010: * The Original Code is the Java 3D(tm) Scene Graph Editor.
011: * The Initial Developer of the Original Code is Paul Byrne.
012: * Portions created by Paul Byrne are Copyright (C) 2002.
013: * All Rights Reserved.
014: *
015: * Contributor(s): Paul Byrne.
016: *
017: **/
018: /**
019: * @author Paul Byrne
020: * @version %I%, %G%
021: */package org.jdesktop.j3dedit.scenegrapheditor.nodeeditors.panels;
022:
023: /**
024: *
025: * @author paulby
026: * @version
027: */
028: public class TableTest extends javax.swing.JFrame {
029:
030: /** Creates new form TableTest */
031: public TableTest() {
032: initComponents();
033: pack();
034: }
035:
036: /** This method is called from within the constructor to
037: * initialize the form.
038: * WARNING: Do NOT modify this code. The content of this method is
039: * always regenerated by the FormEditor.
040: */
041: private void initComponents() {//GEN-BEGIN:initComponents
042: menuBar = new javax.swing.JMenuBar();
043: fileMenu = new javax.swing.JMenu();
044: openMenuItem = new javax.swing.JMenuItem();
045: saveMenuItem = new javax.swing.JMenuItem();
046: saveAsMenuItem = new javax.swing.JMenuItem();
047: exitMenuItem = new javax.swing.JMenuItem();
048: editMenu = new javax.swing.JMenu();
049: cutMenuItem = new javax.swing.JMenuItem();
050: copyMenuItem = new javax.swing.JMenuItem();
051: pasteMenuItem = new javax.swing.JMenuItem();
052: deleteMenuItem = new javax.swing.JMenuItem();
053: helpMenu = new javax.swing.JMenu();
054: contentsMenuItem = new javax.swing.JMenuItem();
055: aboutMenuItem = new javax.swing.JMenuItem();
056: jScrollPane1 = new javax.swing.JScrollPane();
057: jTable1 = new javax.swing.JTable();
058:
059: fileMenu.setText("File");
060:
061: openMenuItem.setText("Open");
062:
063: fileMenu.add(openMenuItem);
064: saveMenuItem.setText("Save");
065:
066: fileMenu.add(saveMenuItem);
067: saveAsMenuItem.setText("Save As ...");
068:
069: fileMenu.add(saveAsMenuItem);
070: exitMenuItem.setText("Exit");
071: exitMenuItem
072: .addActionListener(new java.awt.event.ActionListener() {
073: public void actionPerformed(
074: java.awt.event.ActionEvent evt) {
075: exitMenuItemActionPerformed(evt);
076: }
077: });
078:
079: fileMenu.add(exitMenuItem);
080: menuBar.add(fileMenu);
081: editMenu.setText("Edit");
082:
083: cutMenuItem.setText("Cut");
084:
085: editMenu.add(cutMenuItem);
086: copyMenuItem.setText("Copy");
087:
088: editMenu.add(copyMenuItem);
089: pasteMenuItem.setText("Paste");
090:
091: editMenu.add(pasteMenuItem);
092: deleteMenuItem.setText("Delete");
093:
094: editMenu.add(deleteMenuItem);
095: menuBar.add(editMenu);
096: helpMenu.setText("Help");
097:
098: contentsMenuItem.setText("Contents");
099:
100: helpMenu.add(contentsMenuItem);
101: aboutMenuItem.setText("About");
102:
103: helpMenu.add(aboutMenuItem);
104: menuBar.add(helpMenu);
105: addWindowListener(new java.awt.event.WindowAdapter() {
106: public void windowClosing(java.awt.event.WindowEvent evt) {
107: exitForm(evt);
108: }
109: });
110:
111: jScrollPane1.setViewportView(jTable1);
112:
113: getContentPane()
114: .add(jScrollPane1, java.awt.BorderLayout.CENTER);
115:
116: setJMenuBar(menuBar);
117:
118: }//GEN-END:initComponents
119:
120: private void exitMenuItemActionPerformed(
121: java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
122: System.exit(0);
123: }//GEN-LAST:event_exitMenuItemActionPerformed
124:
125: /** Exit the Application */
126: private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
127: System.exit(0);
128: }//GEN-LAST:event_exitForm
129:
130: /**
131: * @param args the command line arguments
132: */
133: public static void main(String args[]) {
134: new TableTest().show();
135: }
136:
137: // Variables declaration - do not modify//GEN-BEGIN:variables
138: private javax.swing.JMenuBar menuBar;
139: private javax.swing.JMenu fileMenu;
140: private javax.swing.JMenuItem openMenuItem;
141: private javax.swing.JMenuItem saveMenuItem;
142: private javax.swing.JMenuItem saveAsMenuItem;
143: private javax.swing.JMenuItem exitMenuItem;
144: private javax.swing.JMenu editMenu;
145: private javax.swing.JMenuItem cutMenuItem;
146: private javax.swing.JMenuItem copyMenuItem;
147: private javax.swing.JMenuItem pasteMenuItem;
148: private javax.swing.JMenuItem deleteMenuItem;
149: private javax.swing.JMenu helpMenu;
150: private javax.swing.JMenuItem contentsMenuItem;
151: private javax.swing.JMenuItem aboutMenuItem;
152: private javax.swing.JScrollPane jScrollPane1;
153: private javax.swing.JTable jTable1;
154: // End of variables declaration//GEN-END:variables
155:
156: }
|