วันพฤหัสบดีที่ 6 กันยายน พ.ศ. 2555

Main.java


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package telephone;

import java.sql.Connection;
import javax.swing.UIManager;

/**
 *
 * @author acer
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

        /*try{
        Connection c = MyConnect.getConnection();
        System.out.println("connect complete" + c.getCatalog()); //+ c.getCatalog() << คือให้แสดงชื่อฐานข้อมูลด้วย
        }catch (Exception e){
            e.printStackTrace();
        }*/

        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
            new jFrameMyFriend().setVisible(true);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น