package com.rizki.mufrizal.aplikasi.inventory;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
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 extends Application {

    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");
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        
        LOGGER.info("aplikasi is starting");
        
        LOGGER.debug("load file fxml");
        Parent root = FXMLLoader.load(getClass().getResource("/fxml/BarangView.fxml"));

        Scene scene = new Scene(root);

        stage.setTitle("Aplikasi Inventory");
        stage.setScene(scene);
        stage.show();
    }

}

@@ -52,124 +52,60 @@
 ort 
-javafx.application.Application;%0Aimport javafx.fxml.FXMLLoader;%0Aimport javafx.scene.Parent;%0Aimport javafx.scene.Scene
+com.rizki.mufrizal.aplikasi.inventory.view.MenuUtama
 ;%0Aim
@@ -117,21 +117,21 @@
 java
-f
 x.s
-tage.Stag
+wing.JFram
 e;%0Ai
@@ -555,28 +555,8 @@
 App 
-extends Application 
 %7B%0A%0A 
@@ -859,24 +859,25 @@
 tion%22);%0A
+%0A
         
 launch(a
@@ -872,85 +872,351 @@
     
-launch(args);%0A    %7D%0A%0A    @Override%0A    public void start(Stage stage) throws 
+try %7B%0A            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) %7B%0A                if (%22Nimbus%22.equals(info.getName())) %7B%0A                    javax.swing.UIManager.setLookAndFeel(info.getClassName());%0A                    break;%0A                %7D%0A            %7D%0A        %7D catch (ClassNotFound
 Exce
@@ -1220,16 +1220,20 @@
 xception
+ ex)
  %7B%0A     
@@ -1239,200 +1239,463 @@
     
-%0A
     
-    LOGGER.info(%22aplikasi is starting%22);%0A        %0A        LOGGER.debug(%22load file fxml%22);%0A        Parent root = FXMLLoader.load(getC
+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.c
 lass
-()
 .get
-Resource(%22/fxml/BarangView.fxml%22)
+Name()).log(java.util.logging.Level.SEVERE, null, ex
 );%0A
-%0A
         
 Scen
@@ -1694,136 +1694,477 @@
     
-Scene scene = new Scene(root);%0A%0A        stage.setTitle(%22Aplikasi Inventory%22);%0A        stage.setScene(scene);%0A        stage.show(
+%7D catch (javax.swing.UnsupportedLookAndFeelException ex) %7B%0A            java.util.logging.Logger.getLogger(MenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);%0A        %7D%0A%0A        java.awt.EventQueue.invokeLater(new Runnable() %7B%0A            public void run() %7B%0A                MenuUtama menuUtama = new MenuUtama();%0A                menuUtama.setExtendedState(JFrame.MAXIMIZED_BOTH);%0A                menuUtama.setVisible(true);%0A            %7D%0A        %7D
 );%0A 

Update main class