/* * Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved. * * http://stripbandunk.com/ * * STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.stripbandunk.formlogin; import com.stripbandunk.formlogin.form.FormApplication; import com.stripbandunk.formlogin.form.FormLogin; import com.stripbandunk.formlogin.helper.HibernateHelper; import javax.swing.SwingUtilities; public class App { private FormApplication formApplication; private FormLogin formLogin; public App() { formApplication = new FormApplication(); formLogin = new FormLogin(formApplication, true); } public void startApp() { formLogin.setLocationRelativeTo(formApplication); formApplication.setVisible(true); formLogin.setVisible(true); } public static void main(String[] args) { // init hibernate HibernateHelper.getSessionFactory().openSession().close(); // jalankan aplikasi SwingUtilities.invokeLater(new Runnable() { public void run() { App app = new App(); app.startApp(); } }); } }