package com.rizki.mufrizal.aplikasi.inventory;

import com.rizki.mufrizal.aplikasi.inventory.view.MenuUtama;
import javax.swing.JFrame;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 * @Author Rizki Mufrizal <mufrizalrizki@gmail.com>
 * @Since Mar 18, 2016
 * @Time 10:12:46 PM
 * @Encoding UTF-8
 * @Project Aplikasi-Inventory
 * @Package com.rizki.mufrizal.aplikasi.inventory
 *
 */
public class App {

    private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
    private static ApplicationContext applicationContext;

    public static void main(String[] args) {
        applicationContext = new AnnotationConfigApplicationContext("com.rizki.mufrizal.aplikasi.inventory.configuration");

        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }

        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                MenuUtama menuUtama = new MenuUtama();
                menuUtama.setExtendedState(JFrame.MAXIMIZED_BOTH);
                menuUtama.setVisible(true);
            }
        });
    }

}

@@ -41,16 +41,221 @@
 ntory;%0A%0A
+import com.rizki.mufrizal.aplikasi.inventory.service.BarangService;%0Aimport com.rizki.mufrizal.aplikasi.inventory.service.PenjualanService;%0Aimport com.rizki.mufrizal.aplikasi.inventory.service.UserService;%0A
 import c
@@ -936,24 +936,93 @@
 g%5B%5D args) %7B%0A
+        LOGGER.info(%22load konfigurasi spring hibernate annotation%22);%0A
         appl
@@ -1499,650 +1499,150 @@
 ion 
-ex) %7B%0A            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);%0A        %7D catch (InstantiationException ex) %7B%0A            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);%0A        %7D catch (IllegalAccessException ex) %7B%0A            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);%0A        %7D catch (javax.swing.UnsupportedLookAndFeelException ex) %7B%0A            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null
+%7C InstantiationException %7C IllegalAccessException %7C javax.swing.UnsupportedLookAndFeelException ex) %7B%0A            LOGGER.error(%22error di : %7B%7D%22
 , ex
@@ -1699,22 +1699,13 @@
 ter(
-new Runnable()
+() -%3E
  %7B%0A 
@@ -1719,32 +1719,44 @@
     
-public void run() %7B%0A    
+LOGGER.info(%22jalankan menu utama%22);%0A
     
@@ -1802,20 +1802,16 @@
 tama();%0A
-    
         
@@ -1869,36 +1869,32 @@
 H);%0A            
-    
 menuUtama.setVis
@@ -1902,38 +1902,643 @@
 ble(
-true);%0A        
+Boolean.TRUE);%0A        %7D);%0A    %7D%0A%0A    public static UserService userService() %7B%0A        LOGGER.info(%22inisialisasi bean user service pada spring%22);%0A        return (UserService) applicationContext.getBean(%22UserService%22);%0A
     %7D%0A
+%0A
     
-    %7D
+public static BarangService barangService() %7B%0A        LOGGER.info(%22inisialisasi bean barang service pada spring%22);%0A        return (BarangService) applicationContext.getBean(%22BarangService%22);%0A    %7D%0A%0A    public static PenjualanService penjualanService() %7B%0A        LOGGER.info(%22inisialisasi bean penjualan service pada spring%22);%0A        return (PenjualanService) applicationContext.getBean(%22PenjualanService%22
 );%0A 

update main class