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

📄 zswaitfrm.java

📁 jbuilder下开发的等待提示线程
💻 JAVA
字号:
package support;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;import wisesoft.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class ZsWaitFrm extends JDialog {    public String Cur_Path = System.getProperty("user.dir"); //获取当前工作目录    public String sp = System.getProperty("file.separator");    BorderLayout borderLayout1 = new BorderLayout();    public ZsWaitFrmCanvas jPanel1 = new ZsWaitFrmCanvas();  public ZsWaitFrm() {    try {      jbInit();      //jPanel1.update(jPanel1.getGraphics());    }    catch(Exception e) {      e.printStackTrace();    }  }  public ZsWaitFrm(JFrame owner) {    super(owner);    try {      jbInit();      //jPanel1.update(jPanel1.getGraphics());    }    catch(Exception e) {      e.printStackTrace();    }  }    public ZsWaitFrm(JDialog owner) {      super(owner);      try {        jbInit();       // jPanel1.update(jPanel1.getGraphics());      }      catch(Exception e) {        e.printStackTrace();      }    }  public static void main(String[] args) {    ZsWaitFrm ZsWaitFrm1 = new ZsWaitFrm();  }  private void jbInit() throws Exception {    //Cur_Path + sp   // backimage = getToolkit().getImage(Cur_Path + sp+"GIF"+sp+"NDB.gif");//testZsComboEdit.class.getResource("waitback.png")    this.getContentPane().setLayout(borderLayout1);    //((Graphics2D)this.getGraphics()).drawImage(backimage,0,0,20,20,this);    // paintComponent(jPanel2.getGraphics());    this.setTitle("等待提示");    this.addWindowListener(new ZsWaitFrm_this_windowAdapter(this));    jPanel1.setPreferredSize(new Dimension(300, 50));    this.getContentPane().add(jPanel1,  BorderLayout.CENTER);    this.setSize(300,50);    jPanel1.start();  }  void this_windowClosed(WindowEvent e) {    //jPanel1.flag=false;  }}class ZsWaitFrm_this_windowAdapter extends java.awt.event.WindowAdapter {  ZsWaitFrm adaptee;  ZsWaitFrm_this_windowAdapter(ZsWaitFrm adaptee) {    this.adaptee = adaptee;  }  public void windowClosed(WindowEvent e) {    adaptee.this_windowClosed(e);  }}

⌨️ 快捷键说明

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