?? warningp.java
字號:
package dialog;import java.awt.*;import javax.swing.*;import java.awt.event.*;/** * Title: * Description: * Copyright: Copyright (c) 2001 * Company: * @author * @version 1.0 */public class WarningP extends Panel { JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JButton jButton1 = new JButton(); WarningD m_wd; public WarningP(WarningD wd) { m_wd=wd; try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { jLabel1.setForeground(Color.red); jLabel1.setText("你現在是在客戶端運行的一個網絡游戲。"); jLabel1.setBounds(new Rectangle(37, 15, 247, 30)); this.setLayout(null); jLabel2.setForeground(Color.red); jLabel2.setText("你沒有權限來運行這個命令!"); jLabel2.setBounds(new Rectangle(59, 51, 189, 31)); jButton1.setText("確定"); jButton1.setBounds(new Rectangle(99, 87, 79, 29)); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { jButton1_actionPerformed(e); } }); this.add(jButton1, null); this.add(jLabel1, null); this.add(jLabel2, null); } void jButton1_actionPerformed(ActionEvent e) { m_wd.dispose(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -