/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.vutbr.fit.pdb;

import cz.vutbr.fit.pdb.view.RootPanel;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;

/**
 *
 * @author casey
 */
public class Core {
    
    private JFrame mainWindow;
    private RootPanel rootPanel;
    
    
    public Core(){
        mainWindow = new JFrame("PDB 2013");
        rootPanel = new RootPanel();
        mainWindow.add(rootPanel);
        mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        mainWindow.setSize(800, 600);
        mainWindow.setVisible(true);
        mainWindow.setExtendedState(mainWindow.getExtendedState() | JFrame.MAXIMIZED_BOTH);
        
    
    }
    
    
    private void setOnCenter(Dimension frameSize){
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        mainWindow.setLocation(screenSize.width / 2 -frameSize.width / 2, screenSize.height /2 - frameSize.height / 2);
    
    }
    
    
    public static void main(String[] args){
        javax.swing.SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                Core c = new Core();
                //c.initGui();
                //c.showGui();
            }
        });
    
    }
}
@@ -120,16 +120,55 @@
 t.pdb;%0A%0A
+import cz.vutbr.fit.pdb.view.MainMenu;%0A
 import c
@@ -199,16 +199,16 @@
 tPanel;%0A
-
 import j
@@ -396,16 +396,47 @@
 tPanel;%0A
+    private MainMenu mainMenu;%0A
     %0A   
@@ -501,16 +501,16 @@
 2013%22);%0A
-
         
@@ -534,24 +534,101 @@
 ootPanel();%0A
+        mainMenu = new MainMenu();%0A        mainWindow.setJMenuBar(mainMenu);%0A
         main

Add mainmenu to jframe.