
/***********************************************************************
***        YES!Javara VERSION 1.0                                                                                         
***        File Name         : Web2EJB                                                                         
*** File Description  : Web2EJB Start Progrem                                             
*** Calling Class     : logo.class, Delay.class, MainPanel.class, 
***                                                login.class, logout.class                                                             
*** Work Date         : 2001/08/0
*** Modify Date       :
*** Modify Contents   :
************************************************************************/

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

import         com.oyoaha.swing.plaf.oyoaha.*;
import         com.l2fprod.gui.*;
import         com.l2fprod.gui.plaf.skin.*;
import         com.l2fprod.util.*;

import ui.*;
import Database.*;

public class Web2EJB
{

    public static void main ( String args[] )
    {
    		
    	    	
                try {
                        Skin skin = null;
                        String skinDir1 = "com\\aquathemepack\\gtk\\gtkrc";
                        skin = SkinLookAndFeel.loadSkin(skinDir1);

                        // set the skin
                        SkinLookAndFeel.setSkin(skin);

                        // ask Swing to use Skin Look And Feel
                        UIManager.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel");

                        Dimension screen_size = Toolkit.getDefaultToolkit().getScreenSize();
                        MainPanel f= new MainPanel();                
												
                        f.setBounds(0, 0, screen_size.width, screen_size.height);                        
                        f.setLocation(0,0);
                        f.setVisible(true);
                        f.setEnabled(true);                //Main Window Disable until Lonin success
                        //== MDI Main Display =============================================

                        //== Login Window Display =========================================
                        //JFrame frmlogin = new login(f, dbCon);
                        //frmlogin.setVisible(true);        
                        //frmlogin.setEnabled(true);
                        //== Login Window Display =========================================
        
//                        dbCon = new DBConnection();
                                
                        //== Main Window Action Listener ==================================
                        f.addWindowListener(new WindowAdapter() {
                                public void windowClosing(WindowEvent e) {
//                                        JFrame frmlogout = new logout(dbCon);
                                        System.exit(0);
                                        //dbCon.close();
                                }
                        });                        
                        //== Main Window Action Listener ===================================
                }catch(Exception ex){
                        ex.printStackTrace();
                }
        }                
}


