⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 error.java

📁 抢答器
💻 JAVA
字号:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.net.*;

public class error extends JFrame implements ActionListener
{
	JPanel p;
	JButton b;
	JLabel l;
	public error(String reason)
	{
		this.setTitle("@_@");
		this.setSize(150,100);
		this.setLocation(550,420);
		p=new JPanel();
		p.setBackground(new Color(85,141,142));
		p.setLayout(null);
		
		
		l=new JLabel();
		l.setText(reason);
		b=new JButton("确定");
		l.setBounds(40,10, 200, 30);
		b.setBounds(40, 35, 60, 30);
		p.add(l);
		p.add(b);
		b.addActionListener(this);
		add(p);
		this.setVisible(true);
	}
	public void actionPerformed(ActionEvent e)
	{
		this.dispose();
	}
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -