上传者: ouhaichuan321
|
上传时间: 2021-10-22 15:24:39
|
文件大小: 7KB
|
文件类型: -
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class PCDD
{
public static void main(String []args)
{
ProcessFrame PF=new ProcessFrame();
PF.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
PF.setVisible(true);
}
}
class ProcessFrame extends JFrame
{
public ProcessFrame()
{
setTitle("进程调度实验演示--->欧海川制作");
setSize(900,700);
ButtonPanel panel=new ButtonPanel();
Container contentPane=getContentPane();
contentPane.add(panel);
}
}
class ButtonPanel extends JPanel implements ActionListener
{
JLabel j1,j2,j3,j4,j5,j6,j7,j8;
JButton b1;
public static JTextArea t1;
JTextField t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
public ButtonPanel()
{
setLayout(null);
setBackground(Color.green);
b1=new JButton("开始演示");