📄 in_ok.java~2~
字号:
package Resource_Selection;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class in_ok extends JFrame { JPanel contentPane; JLabel jLabel1 = new JLabel(); JButton jButton1 = new JButton(); //Construct the frame public in_ok() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); jLabel1.setForeground(Color.black); jLabel1.setText("节点已添加"); jLabel1.setBounds(new Rectangle(118, 10, 64, 34)); contentPane.setLayout(null); this.setSize(new Dimension(299, 107)); this.setTitle("确认"); jButton1.setBounds(new Rectangle(117, 50, 64, 30)); jButton1.setText("确定"); jButton1.addActionListener(new in_ok_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); } } void jButton1_actionPerformed(ActionEvent e) { }}class in_ok_jButton1_actionAdapter implements java.awt.event.ActionListener { in_ok adaptee; in_ok_jButton1_actionAdapter(in_ok adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -