private void initialize() {

        final int INSET = 50;
        dimWindow = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension minDimWindows = new Dimension(300,300);
        new JDesktopPane();
        setResizable(true);
        setBounds(INSET, INSET,
                dimWindow.width  - INSET*2,
                dimWindow.height - INSET*2);
        this.setMinimumSize(minDimWindows);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        this.setLayout(new BorderLayout());

        ImageIcon icon = new ImageIcon(Main.ICO_PATH + "chart_stock.png");

        this.setIconImage(icon.getImage());

        listDataOut = new ListDataOut();

        initMenuBar();
        initButtonBar();
        initUpperBars();
        initStatusBar();

//        dataBase = new FileDataBase();
        initTreeView();
        /*dataArrays = new ArraysDataBase();*/
        initTable();

        initPopupMenu();

        addWindowFocusListener(new WindowAdapter() {
            /**
             * Invoked when the Window is set to be the focused Window, which means
             * that the Window, or one of its subcomponents, will receive keyboard
             * events.
             *
             * @since 1.4
             */
            @Override
            public void windowGainedFocus(WindowEvent e) {
                super.windowGainedFocus(e);
                setDataBase();
                setUpArraysColumn(mainTable.getColumnModel().getColumn(4));
                mainTable.updateUI();

            }
        });
    }