}
private JMenuBar createMenuBar() {
BindingGroup menuBinding = new BindingGroup();
ResourceMap resourceMap = application.getContext().getResourceMap(Mediator.class);
ApplicationActionMap actionMap = getActionMap();
JMenuBar bar = new JMenuBar();
// Menu File
JMenu menuFile = new JMenu(resourceMap.getString("menu.file"));
menuFileDevices = new JMenu(resourceMap.getString("menu.file.devices.text"));
menuFileDevices.setIcon(resourceMap.getIcon("menu.file.devices.icon"));
menuFile.add(menuFileDevices);
menuBinding.addBinding( bindRead(this, PROP_DEVICES, menuFileDevices, "enabled"));
menuFile.addSeparator();
menuFile.add(new JMenuItem(actionMap.get(ACTION_SAVE_SCREENSHOT)));
menuFile.add(new JCheckBoxMenuItem(actionMap.get(ACTION_RECORDING)));
menuFile.add(new JMenuItem(actionMap.get(ACTION_OPEN_DESTINATION_FOLDER)));
menuFile.addSeparator();
menuFile.add(new JMenuItem(actionMap.get(ACTION_CHANGE_DEFAULT_FOLDER)));
menuFile.add(new JMenuItem(actionMap.get(ACTION_CHANGE_SDK_FOLDER)));
menuFile.addSeparator();
menuFile.add(new JMenuItem(actionMap.get("quit")));
// Menu Edit
JMenu menuEdit = new JMenu(resourceMap.getString("menu.edit"));
menuEdit.add(new JMenuItem(actionMap.get(ACTION_COPY_TO_CLIPBOARD)));
// Menu View
JMenu menuView = new JMenu(resourceMap.getString("menu.view"));
menuView.add(new JCheckBoxMenuItem(actionMap.get(ACTION_SHOW_TOOLBAR_LABELS)));
menuView.addSeparator();
menuView.add(new JCheckBoxMenuItem(actionMap.get(ACTION_LANDSCAPE)));
menuView.add(new JCheckBoxMenuItem(actionMap.get(ACTION_LANDSCAPE_CW)));
menuView.addSeparator();
menuView.add(new JMenuItem(actionMap.get(ACTION_ZOOM_IN)));
menuView.add(new JMenuItem(actionMap.get(ACTION_ZOOM_OUT)));
menuView.add(new JMenuItem(actionMap.get(ACTION_SIZE_ORIGINAL)));
menuView.add(new JMenuItem(actionMap.get(ACTION_SIZE_SMALL)));
menuView.add(new JMenuItem(actionMap.get(ACTION_SIZE_LARGE)));
menuView.add(new JCheckBoxMenuItem(actionMap.get(ACTION_SIZE_FIT)));
menuView.addSeparator();
menuView.add(new JMenuItem(actionMap.get(ACTION_FULL_SCREEN)));
// Menu Tools
JMenu toolsView = new JMenu(resourceMap.getString("menu.tools"));
toolsView.add(new JMenuItem(actionMap.get(ACTION_INSTALL)));
toolsView.addSeparator();
toolsView.add(new JMenuItem(actionMap.get(ACTION_OPTIONS)));
// Menu Help
JMenu menuHelp = new JMenu(resourceMap.getString("menu.help"));
menuHelp.add(new JMenuItem(actionMap.get(ACTION_CHECK_UPDATES)));
menuHelp.add(new JMenuItem(actionMap.get(ACTION_ABOUT)));
bar.add(menuFile);
bar.add(menuEdit);
bar.add(menuView);
bar.add(toolsView);