instancepanel.java~3~

来自「主要为一个空间信息管理系统」· JAVA~3~ 代码 · 共 34 行

JAVA~3~
34
字号
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()
  {
    splashLabel = new JLabel(createImageIcon("Splash.jpg",
                                             "Splash.accessible_description"));

    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 void main(String[] args)
  {
    InstancePanel instancePanel1 = new InstancePanel();
  }

}

⌨️ 快捷键说明

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