layerControlPanel = new JPanel();
layerControlPanel.setLayout(new BoxLayout(layerControlPanel,
BoxLayout.X_AXIS));
Main.main.menu = this.menu;
toolbar = new ToolbarPreferences();
toolbar.refreshToolbarControl();
// toolbar.control.updateUI();
// contentPane.add(toolbar.control, BorderLayout.NORTH);
contentPane.updateUI();