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

📄 wblauncher.java

📁 it is whiteboard sourse code
💻 JAVA
字号:
package org.merlin.step.nov;import java.awt.*;import java.awt.event.*;import java.applet.*;public class WBLauncher extends Applet {  Image image;  Frame wb;    public void init () {    image = getImage (getCodeBase (), "wb.jpeg");    enableEvents (AWTEvent.MOUSE_EVENT_MASK);  }  public void destroy () {    if (wb != null)      wb.dispose ();  }  public void paint (Graphics g) {    g.drawImage (image, (getSize ().width - image.getWidth (this)) / 2,                 (getSize ().height - image.getHeight (this)) / 2, this);  }  protected void processMouseEvent (MouseEvent e) {    super.processMouseEvent (e);    if (e.getID () == MouseEvent.MOUSE_PRESSED) {      try {        if (wb == null) {          Class theClass = Class.forName ("org.merlin.step.nov.WB");          wb = (Frame) theClass.newInstance ();          wb.dispatchEvent (new ActionEvent (this, AWTEvent.RESERVED_ID_MAX + 1, ""));        }        wb.setVisible (true);      } catch (Exception ex) {        ex.printStackTrace ();      }    }  }}

⌨️ 快捷键说明

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