return cr;
}
public boolean isCellEditable(int row,int column){ return false; } }
@SuppressWarnings(\ public show(){ 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(); } }