📄 elevatorsimulation.java
字号:
package com.Anance.elevator;import java.awt.*;import javax.swing.*;import com.Anance.elevator.model.*;import com.Anance.elevator.view.*;import com.Anance.elevator.controller.*;public class ElevatorSimulation extends JFrame { private ElevatorModel model; private ElevatorView view; private ElevatorController controller; public ElevatorSimulation() { super( "Anance Elevator Simulation Ver1.0" ); model = new ElevatorModel(); view = new ElevatorView(); controller = new ElevatorController( model ); model.setElevatorModelListener( view ); getContentPane().add( view, BorderLayout.CENTER ); getContentPane().add( controller, BorderLayout.SOUTH ); } public static void main( String args[] ) { ElevatorSimulation simulation = new ElevatorSimulation(); simulation.setDefaultCloseOperation( EXIT_ON_CLOSE ); simulation.pack(); simulation.setVisible( true ); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -