📄 null_ip.java
字号:
package Resource_Selection;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class null_ip extends JFrame { JPanel contentPane; JLabel jLabel1 = new JLabel(); JButton jButton1 = new JButton(); //Construct the frame public null_ip() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); jLabel1.setText("您 所查找的IP 不存在,请重新输入"); jLabel1.setBounds(new Rectangle(64, 14, 202, 36)); contentPane.setLayout(null); this.setSize(new Dimension(326, 117)); this.setTitle("null"); jButton1.setBounds(new Rectangle(96, 56, 115, 34)); jButton1.setText("确定"); jButton1.addActionListener(new null_ip_jButton1_actionAdapter(this)); contentPane.add(jLabel1, null); contentPane.add(jButton1, null); } //Overridden so we can exit when window is closed protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) {// System.exit(0); this.dispose(); } } void jButton1_actionPerformed(ActionEvent e) { this.dispose(); }}class null_ip_jButton1_actionAdapter implements java.awt.event.ActionListener { null_ip adaptee; null_ip_jButton1_actionAdapter(null_ip adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -