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

📄 ideframe_aboutbox.java

📁 WAP ide 代码
💻 JAVA
字号:
package wapide;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.border.*;/** * Just another about box. * Copyright (c) 2003 * @author Mark Busman * @version 1.0 * * For License and contact information see WAPIDE.java */public class IDEFrame_AboutBox extends JDialog implements ActionListener {  private JPanel panel1 = new JPanel();  private JPanel panel2 = new JPanel();  private JPanel insetsPanel1 = new JPanel();  private JPanel insetsPanel3 = new JPanel();  private JButton button1 = new JButton();  private JLabel label1 = new JLabel();  private JLabel label2 = new JLabel();  private JLabel label3 = new JLabel();  private JLabel label4 = new JLabel();  private BorderLayout borderLayout1 = new BorderLayout();  private BorderLayout borderLayout2 = new BorderLayout();  private GridLayout gridLayout1 = new GridLayout();  private String product = "WAP Application Development Kit";  private String version = "1.0";  private String copyright = "Copyright (c) 2001";  private String comments = "This project seeks to develop a free distribution of a cross-platform WAP Application Development Kit with a fully integrated development environment which supports WAP version 1.2.  It is being developed as a partial fulfillment to my Master's Degree at the University of Asia and the Pacific(UA&P) in Information Technologies.\n\nThe Kit will include the following components:\n1. A fully integrated development environment with support for expansion modules.\n2. A WML/WMLScript editor with color coding support for WAP syntax.\n3. A micro-browser for testing new WAP programs (will use html initaillt for simple display only).\n4. A visual WAP designer for easy WAP creation.\n5. WAP encoders and decoders.\n\nThe kit will eventually have the following components added to it:\n1. WMLScript support for the micro-browser and encoders and decoders.\n2. A WBMP editor as well as WBMP support in the mico-broser and WAP designer.\n3. Full WAP support in the micro-browser.";  /**   * Constructs the About box.   * @param parent - the frame this dialog box belongs too, can be null.   */  public IDEFrame_AboutBox(Frame parent) {    super(parent);    enableEvents(AWTEvent.WINDOW_EVENT_MASK);    try {      jbInit();      pack();      setSize(330, 130);      setResizable(false);    }    catch(Exception e) {      e.printStackTrace();    }  }  /**Component initialization*/  private void jbInit() throws Exception  {    //imageLabel.setIcon(new ImageIcon(IDEFrame_AboutBox.class.getResource("[Your Image]")));    this.setModal(true);    this.setTitle("About");    panel1.setLayout(borderLayout1);    panel2.setLayout(borderLayout2);    gridLayout1.setRows(4);    gridLayout1.setColumns(1);    label1.setBackground(Color.white);    label1.setForeground(Color.black);    label1.setText("WAP Toolkit");    label2.setBackground(Color.white);    label2.setForeground(Color.black);    label2.setText("1.0");    label3.setBackground(Color.white);    label3.setForeground(Color.black);    label3.setText("Copyright (c) 2002 Mark Busman");    insetsPanel3.setLayout(gridLayout1);    insetsPanel3.setBackground(Color.white);    insetsPanel3.setBorder(BorderFactory.createEmptyBorder(10, 60, 10, 10));    insetsPanel3.setOpaque(false);    button1.setText("Ok");    button1.addActionListener(this);    insetsPanel1.setBackground(Color.white);    insetsPanel1.setOpaque(false);    panel1.setPreferredSize(new Dimension(302, 100));    this.getContentPane().add(panel1, null);    insetsPanel3.add(label1, null);    insetsPanel3.add(label2, null);    insetsPanel3.add(label3, null);    insetsPanel3.add(label4, null);    panel2.add(insetsPanel3, BorderLayout.CENTER);    insetsPanel1.add(button1, null);    panel1.add(insetsPanel1, BorderLayout.SOUTH);    panel1.add(panel2, BorderLayout.NORTH);  }  /**Overridden so we can exit when window is closed*/  protected void processWindowEvent(WindowEvent e) {    if (e.getID() == WindowEvent.WINDOW_CLOSING) {      cancel();    }    super.processWindowEvent(e);  }  /**Close the dialog*/  void cancel() {    dispose();  }  /**Close the dialog on a button event*/  public void actionPerformed(ActionEvent e) {    if (e.getSource() == button1) {      cancel();    }  }}

⌨️ 快捷键说明

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