Jms.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- /*
- * @(#)Jms.java 1.0 03/08/05
- *
- * You can modify the template of this file in the
- * directory ..JCreatorTemplatesTemplate_1Project_Name.java
- *
- * You can also create your own project template by making a new
- * folder in the directory ..JCreatorTemplate. Use the other
- * templates as examples.
- *
- */
- package myprojects.jms;
- import java.awt.*;
- import java.awt.event.*;
- class Jms extends Frame {
- public Jms() {
- addWindowListener(new WindowAdapter() {
- public void windowClosing(WindowEvent e) {
- dispose();
- System.exit(0);
- }
- });
- }
- public static void main(String args[]) {
- System.out.println("Starting Jms...");
- Jms mainFrame = new Jms();
- mainFrame.setSize(400, 400);
- mainFrame.setTitle("Jms");
- mainFrame.setVisible(true);
- }
- }