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

📄 main.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * Main.java
 *
 * Created on 2007年5月11日, 下午4:28
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package frames;

import utils.*;
import java.sql.*;
import javax.swing.*;
import java.util.*;

import java.io.*;
import java.net.*;
import java.awt.*;



/**
 *
 * @author Virlene Cheng
 */
public class Main
{
    
    /** Creates a new instance of Main */
    public Main()
    {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
	//初始化
	uiInit();
	//dbInit();
	
	
	// TODO code application logic here
	
	new CenterFrame().setVisible(true);
	
	
	
	
	
	
    }
    
    private static void uiInit()
    {
	AppConfig app = new AppConfig();
	JFrame.setDefaultLookAndFeelDecorated(app.getDecorated());
	try
	{
	    UIManager.setLookAndFeel(app.getLookAndFeel());
	}
	catch (Exception ex)
	{
	    ex.printStackTrace();
	}
    }
    
    private static void dbInit()
    {
	try
	{
	    URL[] urls = new URL[3];
	    urls[0] = (new File("msbase.jar")).toURI().toURL();
	    urls[1] = (new File("msutil.jar")).toURI().toURL();
	    urls[2] = (new File("mssqlserver.jar")).toURI().toURL();
	    
	    ClassLoader cl = new URLClassLoader(urls);
	    Class cls = cl.loadClass("com.microsoft.jdbc.sqlserver.SQLServerDriver");
	    
	}
	catch (Exception ex)
	{
	    ex.printStackTrace();
	}
	
    }
    
    
    
    
    
    
    
    
    
    
    
    
}

⌨️ 快捷键说明

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