// interrupted.setRowHeight(30); jsp2=new JScrollPane();
jsp2.setViewportView(interrupted); jsp2.setBounds(50,425,700,40); c.add(jsp2);
jl7=new JLabel(\完成队列:\ jl7.setForeground(Color.red); jl7.setBounds(50,480,70,20);
c.add(jl7);
//---------------------------------------完成队列JTable
String name4[]={\进程ID\优先级\提交时间\运行总耗时\开始时间\完成时间\带权周转时间\ nm4=new Vector
for(int column=0;column } finish=new MTable(finishData,nm4); // finish.setPreferredScrollableViewportSize(new Dimension(500,120)); // finish.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); finish.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); finish.setSelectionBackground(Color.yellow); finish.setSelectionForeground(Color.red); // finish.setRowHeight(30); jsp3=new JScrollPane(); jsp3.setViewportView(finish); jsp3.setBounds(50,505,700,100); c.add(jsp3); save=new JButton(\保存结果\ save.setBounds(250,620,100,25); c.add(save); save.addActionListener(this); exit=new JButton(\退出系统\ exit.setBounds(400,620,100,25); c.add(exit); exit.addActionListener(this); c.setVisible(true); frame.setVisible(true); new //线程启动 new Looking().start(); } ThreadRunning().start(); public int outputruntime(){ //从输入框获取运行时间 String s=tm.getText(); int rt; if(s.trim().length()==0) return 0; else{ try{ rt=Integer.parseInt(s); return rt; }catch(NumberFormatException e){ System.out.println(\您没有输入数值数据!\ return 0; } } } public String outputStart(){ String str=start.getText(); return str; } class ModeChoice implements ItemListener{ //进程调度模式 public void itemStateChanged(ItemEvent e){ item=e.getItem().toString(); } } @SuppressWarnings(\ public void operation(){ //优先级排列算法 Vector