首页>代码>毕设 基于java swing的泡泡堂游戏>/H2003032025-泡泡堂网络游戏的设计与实现/Game/src/net/jeson/game/Game.java
package net.jeson.game;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.Window;

import javax.swing.ImageIcon;
import javax.swing.JFrame;

import net.jeson.game.component.CenterShowDialog;
import net.jeson.game.component.ImagePanel;
import net.jeson.game.ui.Login;
import net.jeson.game.util.Util;

public class Game extends JFrame{

	ImagePanel panel = new ImagePanel(new ImageIcon("images/note.gif").getImage());
	public Game(){
		this.add(panel);
		panel.setDoubleBuffered(true);
		panel.setIgnoreRepaint(true);
		this.setUndecorated(true);
		this.pack();
		this.setVisible(true);
		new CenterShowDialog(this);
	} 
	public static  void main(String[] args){
		Game game =new Game();
		Util.showWindow(game);
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		Util.closeWindow(game);
       Login frame = new Login();
       new CenterShowDialog(frame);
       frame.setVisible(true);
       game.setVisible(false);
	       
	}
}
最近下载更多
970319208  LV3 6月9日
zhuyongwei  LV1 3月29日
lindali  LV1 3月11日
longbadx  LV9 1月22日
bingtian1112  LV1 2024年12月23日
微信网友_6802079662936064  LV3 2024年12月12日
lijiuo  LV1 2024年12月1日
胡棋俊  LV4 2024年11月17日
最近浏览更多
ningrong 前天
暂无贡献等级
462063 6月12日
暂无贡献等级
970319208  LV3 6月9日
1219796842 6月8日
暂无贡献等级
欠踹de背影  LV25 6月5日
我不叫网友 5月29日
暂无贡献等级
zgb19940908 5月27日
暂无贡献等级
2232k7k8  LV5 5月3日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友