Package core

Source Code of core.Main

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

//~--- non-JDK imports --------------------------------------------------------

//import ui.Inbox;
import ui.MainEditor;

//~--- JDK imports ------------------------------------------------------------

import java.awt.BorderLayout;
import javax.swing.JDialog;
import javax.swing.JFrame;
import ui.LoginPanel;

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

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

//        JDialog dialog=new JDialog();
//        dialog.add(new LoginPanel());
//        dialog.setBounds(100,200,300,300);
//        dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
//        dialog.setResizable(false);
//        dialog.setVisible(true);
//        dialog.setTitle("LogIn Form");

         JFrame frame=new JFrame();
        MainEditor me=new MainEditor("localhost","root","","msgsys","user");
        frame.add(me, BorderLayout.CENTER);
        frame.setSize(800, 300);
        //frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
        frame.setVisible(true);
        frame.setTitle("Inbox");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);






       

    }
}


//~ Formatted by Jindent --- http://www.jindent.com
TOP

Related Classes of core.Main

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.