main.java

来自「Athena酒店小组_Athena酒店管理系统」· Java 代码 · 共 102 行

JAVA
102
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?