• 大小: 0.19M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: 其他
  • 标签: 其他  

资源简介

交通灯模拟系统.rar

资源截图

代码片段和文件信息

/*
 * To change this license header choose License Headers in Project Properties.
 * To change this template file choose Tools | Templates
 * and open the template in the editor.
 */
package trafficlight;

import java.awt.Toolkit;
import javax.swing.Jframe;

/**
 *
 * @author Leopold
 */
public class About extends javax.swing.Jframe {

    /**
     * Creates new form About
     */
    public About() {
        initComponents();
        updatePosition();
    }

    public void updatePosition() {
        setVisible(true);
        setResizable(false);
        setSize(420338);
        int wWidth = Toolkit.getDefaultToolkit().getScreenSize().width;
        int wHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
        int cwidth = getWidth();
        int cheight = getHeight();
        setLocation((wWidth - cwidth)/2  (wHeight - cheight)/2 );
        setDefaultCloseOperation(Jframe.HIDE_ON_CLOSE);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings(“unchecked“)
    // //GEN-BEGIN:initComponents
    private void initComponents() {

        jlayeredPane1 = new javax.swing.JlayeredPane();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        settitle(“关于红绿灯模拟系统“);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(“/folder/2.jpg“))); // NOI18N
        jlayeredPane1.add(jLabel2);
        jLabel2.setBounds(0 0 400 310);

        jLabel3.setFont(new java.awt.Font(“楷体“ 1 48)); // NOI18N
        jLabel3.setText(“使用说明“);
        jlayeredPane1.add(jLabel3);
        jLabel3.setBounds(70 20 300 40);
        jlayeredPane1.setlayer(jLabel3 javax.swing.JlayeredPane.PALETTE_layer);

        jTextArea1.setColumns(20);
        jTextArea1.setFont(new java.awt.Font(“楷体“ 1 18)); // NOI18N
        jTextArea1.setRows(5);
        jTextArea1.setText(“使用Enter键可以进入全屏或退出\n在进入全屏状态时按Esc键可以退出全屏\nSpace键可以使红绿灯模拟系统运行或停止\n可以使用菜单或上下文菜单对系统进行管理“);
        jScrollPane1.setViewportView(jTextArea1);

        jlayeredPane1.add(jScrollPane1);
        jScrollPane1.setBounds(30 100 360 120);
        jlayeredPane1.setlayer(jScrollPane1 javax.swing.JlayeredPane.PALETTE_layer);

        jLabel1.setFont(new java.awt.Font(“楷体“ 1 24)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255 0 0));
        jLabel1.setText(“制作人:王立朋、谢艳艳、王利敏“);
        jlayeredPane1.add(jLabel1);
        jLabel1.setBounds(10 270 390 30);
        jlayeredPane1.setlayer(jLabel1 javax.swing.JlayeredPane.PALETTE_layer);

        javax.swing.GroupLayout

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         76  2014-06-13 08:15  build\built-jar.properties

     文件          0  2014-06-13 08:16  build\classes\.netbeans_automatic_build

     文件          0  2014-06-13 08:16  build\classes\.netbeans_update_resources

     文件      13988  2014-06-13 08:16  build\classes\folder\2.jpg

     文件        529  2014-06-14 13:18  build\classes\trafficlight\About$1.class

     文件       6165  2014-06-14 13:18  build\classes\trafficlight\About.class

     文件       7109  2014-06-14 13:18  build\classes\trafficlight\About.form

     文件       4693  2014-06-13 08:16  build\classes\trafficlight\Car.class

     文件       3569  2014-06-13 08:16  build\classes\trafficlight\CarControl.class

     文件         64  2014-06-13 08:16  build\classes\trafficlight\CarControl.rs

     文件       3237  2014-06-13 08:16  build\classes\trafficlight\CarSet.class

     文件       3096  2014-06-13 08:16  build\classes\trafficlight\LightControl.class

     文件        121  2014-06-13 08:16  build\classes\trafficlight\LightControl.rs

     文件       1428  2014-06-13 08:16  build\classes\trafficlight\LightSet$LightColor.class

     文件       2835  2014-06-13 08:16  build\classes\trafficlight\LightSet$LightPosition.class

     文件       4653  2014-06-13 08:16  build\classes\trafficlight\LightSet.class

     文件       2155  2014-06-13 08:16  build\classes\trafficlight\StreetControl.class

     文件        755  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$1.class

     文件        755  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$2.class

     文件        755  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$3.class

     文件        755  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$4.class

     文件        790  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$5.class

     文件        790  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$6.class

     文件        790  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$7.class

     文件        553  2014-06-13 08:16  build\classes\trafficlight\TrafficConf$8.class

     文件      13505  2014-06-13 08:16  build\classes\trafficlight\TrafficConf.class

     文件      13396  2014-06-13 08:16  build\classes\trafficlight\TrafficConf.form

     文件       8828  2014-06-13 08:18  build\classes\trafficlight\TrafficLight.class

     文件       1301  2014-06-17 19:55  dist\javadoc\allclasses-frame.html

     文件       1181  2014-06-17 19:55  dist\javadoc\allclasses-noframe.html

............此处省略78个文件信息

评论

共有 条评论