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

📄 instancepanel.java~5~

📁 主要为一个空间信息管理系统
💻 JAVA~5~
字号:
package edu.whu.gui;
import javax.swing.*;
/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class InstancePanel extends JPanel
{
  public InstancePanel()
  {
    JLabel splashLabel = new JLabel(createImageIcon("Splash.jpg",
                                             "Splash.accessible_description"));
    JWindow splashScreen = new JWindow(getFrame());
    splashScreen.getContentPane().add(splashLabel);
    splashScreen.pack();
    Rectangle screenRect = getFrame().getGraphicsConfiguration().getBounds();
    splashScreen.setLocation(
        screenRect.x + screenRect.width / 2 - splashScreen.getSize().width / 2,
        screenRect.y + screenRect.height / 2 -
        splashScreen.getSize().height / 2);

  }
  public static JFrame createFrame(GraphicsConfiguration gc) {
        JFrame frame = new JFrame(gc);
        if (numSSs == 0) {
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        } else {
            WindowListener l = new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    numSSs--;
                    swingSets.remove(this);
                }
            };
            frame.addWindowListener(l);
        }
        return frame;
    }

  public static void main(String[] args)
  {
    InstancePanel instancePanel1 = new InstancePanel();
  }

}

⌨️ 快捷键说明

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