• 大小: 2MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-20
  • 语言: Java
  • 标签: 电梯  Java  C  C++  

资源简介

电梯程序 ,包括C、C++、Java的都有。

资源截图

代码片段和文件信息

/*
 * CurrentFloorPanel.java
 *
 * Created on 20061る5ら と 1:08
 */

package marsping;

import marsping.component.Elevator;
import marsping.component.type.Floor;

/**
 *
 * @author  MarsPing
 */
public class CurrentFloorPanel extends javax.swing.JPanel {
    FloorPanel[] floorPanel = new FloorPanel[Floor.values().length];
    
    /** Creates new form CurrentFloorPanel */
    public CurrentFloorPanel() {
        initComponents();
        Floor[] floors = Floor.values();
        for(int i=0; i            floorPanel[i] = new FloorPanel(floors[i]);
        
        for(FloorPanel fp:floorPanel)
            add(fp 0);
    }
    
    public void setAllPanel(){
        for(FloorPanel fp:floorPanel)
            fp.resetPanel();
        floorPanel[Elevator.getCurrentFloor().ordinal()].setPanel();
    }
    
    /** 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.
     */
    // //GEN-BEGIN:initComponents
    private void initComponents() {

        setBackground(new java.awt.Color(102 102 102));
        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204 204 255)));
        setPreferredSize(new java.awt.Dimension(60 365));
    }// //GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
    
}

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

     文件        301  2009-11-30 19:40  Elevators\Elevator\.classpath

     文件        384  2009-11-30 19:20  Elevators\Elevator\.project

     文件       1585  2000-04-15 16:49  Elevators\Elevator\src\org\netbeans\lib\awtextra\AbsoluteConstraints.class

     文件       2607  2000-04-15 16:49  Elevators\Elevator\src\org\netbeans\lib\awtextra\AbsoluteLayout.class

     文件      15029  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\Aquabaseline.class

     文件       1621  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\AquaLayoutstyle$ComponentInsets.class

     文件      14076  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\AquaLayoutstyle.class

     文件      20943  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\baseline.class

     文件       1240  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GnomeLayoutstyle.class

     文件        214  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$1.class

     文件       1277  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$AutopaddingMatch.class

     文件       5509  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$AutopaddingSpring.class

     文件       2445  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$baselineGroup.class

     文件       4448  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$ComponentInfo.class

     文件       4633  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$ComponentSpring.class

     文件       3544  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$ContainerAutopaddingSpring.class

     文件       1151  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$GapSpring.class

     文件       4449  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$Group.class

     文件       1658  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$PaddingSpring.class

     文件       4868  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$ParallelGroup.class

     文件       8741  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$SequentialGroup.class

     文件       2119  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$Spring.class

     文件       1003  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout$SpringDelta.class

     文件      16676  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\GroupLayout.class

     文件       6384  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\Layoutstyle.class

     文件       3860  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\metalLayoutstyle.class

     文件       3087  2005-11-03 06:00  Elevators\Elevator\src\org\jdesktop\layout\WindowsLayoutstyle.class

     文件       1339  2006-01-05 13:27  Elevators\Elevator\src\marsping\CurrentFloorPanel.form

     文件       1643  2006-01-05 13:27  Elevators\Elevator\src\marsping\CurrentFloorPanel.java

     文件       5949  2006-01-10 08:13  Elevators\Elevator\src\marsping\ElevatorSimulator.form

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

评论

共有 条评论