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

📄 octopussplash.java

📁 数据仓库工具
💻 JAVA
字号:


package org.webdocwf.util.loader.wizard;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;


public class OctopusSplash extends JWindow {
   private static OctopusSplash octopusSplash;

   public OctopusSplash(String icon, JFrame f) {
      super(f);
      String prefixUrl="org/webdocwf/util/loader/"+
          "wizard/images/";
      JLabel l = new JLabel(new ImageIcon(
        getClass().getClassLoader().getResource(prefixUrl+icon)));
      getContentPane().add(l, BorderLayout.CENTER);

      Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
      setBounds((dimension.width-281)/2,(dimension.height-210)/2,281,210);
      setVisible(true);

      addMouseListener(new MouseAdapter() {
         public void mousePressed(MouseEvent e) {
            hideSplash();
         }
      });
      setVisible(true);
      octopusSplash=this;
   }

   public static OctopusSplash getSplash () {
      return octopusSplash;
   }

   public void hideSplash () {
      if (isVisible()) {
         setVisible(false);
         dispose();
      }
   }

}

⌨️ 快捷键说明

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