操作系统进程调度仿真程序源码(9)

2019-08-31 15:10

return cr;

}

public boolean isCellEditable(int row,int column){ return false; } }

@SuppressWarnings(\ public show(){ Vector temp=new Vector();

System.out.println(\ for(int i=0;i

System.out.print(temp.get(j)+\ \ } } }

//----------------------------------------------------------------------------------------

import java.awt.*;

import java.awt.event.*; import javax.swing.*;

public class Entrance extends JFrame implements ActionListener{ /** *

*/

private static final long serialVersionUID = 1L;

JButton entry1,entry2,exit;

JLabel jl0,jl1,jl2,jl3,jl4,jl5,jl6,jl7; JTextArea jta; public Entrance(){

setTitle(\进程调度入口程序\

void //测试程序 setSize(600,400);

Container c=getContentPane(); c.setLayout(null);

c.setBounds(0,0,600,400); c.setBackground(Color.blue);

jta=new JTextArea();

jta.setEditable(false);

jta.setText(\开发平台:记事本\\t\开发语言:java \ \调试环境:jdk6.0 update18\\n本系统从算法设计到代码实现均由 池毓兴&王慧娟 原创。\\n组长:3118310_计科82_池毓兴\\t 组员:王慧娟\\n 2010.11.11-2010.12 All rights reserved. \ jta.setForeground(Color.red); jta.setBounds(50,20,500,50); c.add(jta);

//---------------------------------------

entry1=new JButton(\入口一\ entry1.addActionListener(this); entry1.setBounds(50,100,100,25); c.add(entry1);

jl0=new JLabel(\先来先服务算法\ jl0.setForeground(Color.red); jl0.setBounds(50,140,150,20); c.add(jl0);

jl1=new JLabel(\静态优先级调度算法\ jl1.setForeground(Color.red); jl1.setBounds(50,165,150,20); c.add(jl1);

jl2=new JLabel(\动态优先级调度算法\ jl2.setForeground(Color.red); jl2.setBounds(50,190,150,20); c.add(jl2);

jl3=new JLabel(\最短作业优先算法\ jl3.setForeground(Color.red); jl3.setBounds(50,215,150,20); c.add(jl3);

jl4=new JLabel(\最短剩余时间优先算法\ jl4.setForeground(Color.red); jl4.setBounds(50,240,150,20);

(c) Copyright

南京农业大学信息院计科,

c.add(jl4);

//--------------------------------------------- entry2=new JButton(\入口二\ entry2.addActionListener(this); entry2.setBounds(240,100,100,25); c.add(entry2);

jl5=new JLabel(\静态时间片轮转法\ jl5.setForeground(Color.red); jl5.setBounds(240,140,150,20); c.add(jl5);

jl6=new JLabel(\动态时间片轮转法\ jl6.setForeground(Color.red); jl6.setBounds(240,165,150,20); c.add(jl6);

jl7=new JLabel(\多级反馈调度算法\ jl7.setForeground(Color.red); jl7.setBounds(240,190,150,20); c.add(jl7);

exit=new JButton(\退出系统\ exit.setForeground(Color.red); exit.addActionListener(this); exit.setBounds(430,100,100,25); c.add(exit);

setDefaultCloseOperation(EXIT_ON_CLOSE); setVisible(true);

}

public void actionPerformed(ActionEvent e){

if(e.getSource()==entry1){ new MainClass(); }

else if(e.getSource()==exit){ System.exit(0); }

else if(e.getSource()==entry2){ new MainProgramme(); } }

public static void main(String[] args){

//事件响应 new Entrance(); } }


操作系统进程调度仿真程序源码(9).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

Copyright © 2019-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18

× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: