private void initMenuBar(){
        menuBar = new JMenuBar();

//        menuBar.setBounds(0, 0, this.getWidth(), 21);
        menuBar.setSize(this.getWidth(), MENU_BAR_HEIGHT);

        //*********************Menu File************************
        JMenu file = new JMenu ("File");
        JMenuItem menuItemFileNew = new JMenuItem("New                  ");

        ImageIcon iconButtonNew = new ImageIcon(Main.ICO_PATH + "page_white.png");
        menuItemFileNew.setIcon(iconButtonNew);
        menuItemFileNew.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                newWorkSpace();
            }
        });
        file.add(menuItemFileNew);

        JMenuItem menuItemFileOpen = new JMenuItem("Open                  ");
        ImageIcon iconButtonOpen = new ImageIcon(Main.ICO_PATH + "folder.png");
        menuItemFileOpen.setIcon(iconButtonOpen);
        menuItemFileOpen.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                openDialog();
                setUpArraysColumn(mainTable.getColumnModel().getColumn(4));
                mainTable.updateUI();
            }
        });
        file.add(menuItemFileOpen);

        file.addSeparator();

        JMenuItem menuItemFileSave = new JMenuItem("Save               ");
        ImageIcon iconButtonSave = new ImageIcon(Main.ICO_PATH + "disk.png");
        menuItemFileSave.setIcon(iconButtonSave);
        menuItemFileSave.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                if(openingFile != null)
                    saveWorkspace(openingFile);
            }
        });
        file.add(menuItemFileSave);

        JMenuItem menuItemFileSaveAs = new JMenuItem("Save As               ");
        menuItemFileSaveAs.setIcon(iconButtonSave);
        menuItemFileSaveAs.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                saveAsDialog();
            }
        });
        file.add(menuItemFileSaveAs);

        file.addSeparator();

        JMenuItem menuItemFileQuit = new JMenuItem("Quit");
        menuItemFileQuit.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                dispose();

            }
        });
        file.add(menuItemFileQuit);

        //***********************Menu Change***********************
        JMenu edit = new JMenu("Edit");

//        ImageIcon iconButtonEditDataBase = new ImageIcon(Main.ICO_PATH + "database_edit.png");
        JMenuItem menuItemCreateAlgo = new JMenuItem("Create algorythm file   " );
        menuItemCreateAlgo.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                Main.runFrameCreateAlgo();
            }
        });

        JMenuItem menuItemEditFileBase = new JMenuItem("Edit Algorythms base   ");
        menuItemEditFileBase.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                Main.runFileDataBaseEditor();
            }
        });
        ImageIcon iconButtonEditDataBase = new ImageIcon(Main.ICO_PATH + "database_edit.png");
        JMenuItem menuItemAddArray = new JMenuItem("Edit Arrays base   " , iconButtonEditDataBase);
        menuItemAddArray.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                Main.runDataWindow();
            }
        });

        edit.add(menuItemCreateAlgo);
        edit.addSeparator();
        edit.add(menuItemEditFileBase);
        edit.add(menuItemAddArray);

        menuBar.add(file);
        menuBar.add(edit);
    }