protected void initColumnSelectorItems() {
    cornerPopup.removeAll();

    JCheckBoxMenuItem menuItem;

    for (int i = 0; i < realFieldsListTableModel.getColumnCount(); i++) {
      menuItem = new JCheckBoxMenuItem(realFieldsListTableModel.getColumnName(i));
      menuItem.setActionCommand(Integer.valueOf(i).toString());
      addMenuItemListener(menuItem);

      if (fieldsListTable != null) {
        menuItem.setState(fieldsListTableModel.isRealColumnVisible(i));

        if (i == 0) {
          menuItem.setEnabled(false);
        }
      } else {
        menuItem.setState(true);
      }

      cornerPopup.add(menuItem);
    }

    cornerPopup.pack();
  }
Ejemplo n.º 2
0
 /**
  * @param text
  * @param cmdName
  * @param icon
  * @return
  */
 public static JCheckBoxMenuItem createChkMenuItem(String text, String cmdName, ImageIcon icon) {
   JCheckBoxMenuItem item = new JCheckBoxMenuItem(text);
   item.setActionCommand(cmdName);
   if (icon != null) {
     item.setIcon(icon);
   }
   return item;
 }
Ejemplo n.º 3
0
 /**
  * Creates a menu item.
  *
  * @param index The index associated to the item.
  * @return See above.
  */
 private JCheckBoxMenuItem createMenuItem(int index) {
   JCheckBoxMenuItem item = new JCheckBoxMenuItem(NAMES[index]);
   Font f = item.getFont();
   item.setFont(f.deriveFont(f.getStyle(), f.getSize() - 2));
   item.setSelected(filter == index);
   item.addActionListener(this);
   item.setActionCommand("" + index);
   return item;
 }
Ejemplo n.º 4
0
  private static void addItem(JMenu menu, String text) {

    JCheckBoxMenuItem m =
        new JCheckBoxMenuItem(
            text.replaceFirst("/", "").replaceFirst("themepack", "").replaceFirst("\\.zip", ""));

    m.setActionCommand(text);

    m.addActionListener(new ChangeSkinAction());

    m.setSelected(text.equals(theme));

    menu.add(m);
  }
Ejemplo n.º 5
0
    public static void makeMenuBar(JFrame frame, final AirspaceBuilderController controller) {
      JMenuBar menuBar = new JMenuBar();
      final JCheckBoxMenuItem resizeNewShapesItem;
      final JCheckBoxMenuItem enableEditItem;

      JMenu menu = new JMenu("File");
      {
        JMenuItem item = new JMenuItem("Open...");
        item.setAccelerator(
            KeyStroke.getKeyStroke(
                KeyEvent.VK_O, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        item.setActionCommand(OPEN);
        item.addActionListener(controller);
        menu.add(item);

        item = new JMenuItem("Open URL...");
        item.setActionCommand(OPEN_URL);
        item.addActionListener(controller);
        menu.add(item);

        item = new JMenuItem("Save...");
        item.setAccelerator(
            KeyStroke.getKeyStroke(
                KeyEvent.VK_S, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        item.setActionCommand(SAVE);
        item.addActionListener(controller);
        menu.add(item);

        menu.addSeparator();

        item = new JMenuItem("Load Demo Shapes");
        item.setActionCommand(OPEN_DEMO_AIRSPACES);
        item.addActionListener(controller);
        menu.add(item);
      }
      menuBar.add(menu);

      menu = new JMenu("Shape");
      {
        JMenu subMenu = new JMenu("New");
        for (final AirspaceFactory factory : defaultAirspaceFactories) {
          JMenuItem item = new JMenuItem(factory.toString());
          item.addActionListener(
              new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                  controller.createNewEntry(factory);
                }
              });
          subMenu.add(item);
        }
        menu.add(subMenu);

        resizeNewShapesItem = new JCheckBoxMenuItem("Fit new shapes to viewport");
        resizeNewShapesItem.setActionCommand(SIZE_NEW_SHAPES_TO_VIEWPORT);
        resizeNewShapesItem.addActionListener(controller);
        resizeNewShapesItem.setState(controller.isResizeNewShapesToViewport());
        menu.add(resizeNewShapesItem);

        enableEditItem = new JCheckBoxMenuItem("Enable shape editing");
        enableEditItem.setActionCommand(ENABLE_EDIT);
        enableEditItem.addActionListener(controller);
        enableEditItem.setState(controller.isEnableEdit());
        menu.add(enableEditItem);
      }
      menuBar.add(menu);

      menu = new JMenu("Selection");
      {
        JMenuItem item = new JMenuItem("Deselect");
        item.setAccelerator(
            KeyStroke.getKeyStroke(
                KeyEvent.VK_D, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        item.setActionCommand(CLEAR_SELECTION);
        item.addActionListener(controller);
        menu.add(item);

        item = new JMenuItem("Delete");
        item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));
        item.setActionCommand(REMOVE_SELECTED);
        item.addActionListener(controller);
        menu.add(item);
      }
      menuBar.add(menu);

      frame.setJMenuBar(menuBar);

      controller.addPropertyChangeListener(
          new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent e) {
              if (SIZE_NEW_SHAPES_TO_VIEWPORT.equals((e.getPropertyName()))) {
                resizeNewShapesItem.setSelected(controller.isResizeNewShapesToViewport());
              } else if (ENABLE_EDIT.equals(e.getPropertyName())) {
                enableEditItem.setSelected(controller.isEnableEdit());
              }
            }
          });
    }
Ejemplo n.º 6
0
  private JPopupMenu getTerminPopupMenu() {
    JPopupMenu jPopupMenu = new JPopupMenu();
    JMenuItem jmen = new JMenuItem();
    jmen.setText(
        (this.desktop == 0
            ? "in den "
                + (SystemConfig.desktopHorizontal ? "unteren" : "rechten")
                + " Container verschieben"
            : "in den "
                + (SystemConfig.desktopHorizontal ? "oberen" : "linken")
                + " Container verschieben"));

    jmen.setIcon(
        (this.desktop == 0
            ? new ImageIcon(
                Reha.proghome
                    + (SystemConfig.desktopHorizontal ? "/icons/unten.gif" : "/icons/forward.gif"))
            : new ImageIcon(
                Reha.proghome
                    + (SystemConfig.desktopHorizontal
                        ? "/icons/oben.gif"
                        : "/icons/backward.gif"))));
    jmen.setRolloverEnabled(true);
    jmen.setEnabled(true);
    jmen.setActionCommand("verschieben");
    jmen.addActionListener(this);
    jPopupMenu.add(jmen);

    jPopupMenu.addSeparator();
    jmen = new JMenuItem();
    jmen.setText("jetzt(!) Fenster auf verfügbare Größe anpassen");
    jmen.setEnabled(true);
    jmen.setRolloverEnabled(true);
    jmen.setActionCommand("anpassen");
    jmen.addActionListener(this);
    jPopupMenu.add(jmen);
    jPopupMenu.addSeparator();

    JCheckBoxMenuItem cbMenuItem =
        new JCheckBoxMenuItem("stets versuchen das Fenster auf maximale Größe einstellen");
    cbMenuItem.setSelected((stetsgross ? true : false));
    cbMenuItem.setActionCommand("stetsgross");
    cbMenuItem.addActionListener(this);
    cbMenuItem.setEnabled(true);
    cbMenuItem.setRolloverEnabled(true);
    jPopupMenu.add(cbMenuItem);

    cbMenuItem = new JCheckBoxMenuItem("das Fenster immer so lassen wie es (nunmal) ist...");
    cbMenuItem.setSelected((!stetsgross ? true : false));
    cbMenuItem.setActionCommand("stetslassen");
    cbMenuItem.addActionListener(this);
    cbMenuItem.setEnabled(true);
    cbMenuItem.setRolloverEnabled(true);
    jPopupMenu.add(cbMenuItem);

    jPopupMenu.addSeparator();

    jmen = new JMenuItem();
    jmen.setText("Fenster zu Icon verkleinern");
    jmen.setIcon(new ImageIcon(Reha.proghome + "/icons/buttongreen.png"));
    jmen.setEnabled(true);
    jmen.setActionCommand("icon");
    jmen.addActionListener(this);
    jPopupMenu.add(jmen);

    jmen = new JMenuItem();
    jmen.setText("Fenster schließen");
    jmen.setIcon(new ImageIcon(Reha.proghome + "/icons/buttonred.png"));
    jmen.setEnabled(true);
    jmen.setActionCommand("schliessen");
    jmen.addActionListener(this);
    jPopupMenu.add(jmen);

    return jPopupMenu;
  }
Ejemplo n.º 7
0
  /** Build the widget structure of the main window */
  private void createFrame() {

    // Set up the actions table for the whole application
    Toolkit t = Toolkit.getDefaultToolkit();
    Dimension d = t.getScreenSize();

    int width = DEFAULT_WIDTH;
    int height = d.height * 3 / 4;

    top = new JFrame();
    top.setIconImage(
        t.getImage(this.getClass().getResource(rb.getString("frame.jWinDiff.iconImage"))));
    top.setTitle(rb.getString("frame.title.scanning"));
    top.setSize(width, height);

    JPanel base = new JPanel();
    base.setLayout(new BorderLayout());
    top.getContentPane().add(base);

    pictView = new PicturePanel();
    pictView.setOpaque(true);
    pictView.setBackground(Color.white);
    base.add(pictView, BorderLayout.WEST);

    JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setOpaque(true);
    //      panel.setBackground(Color.cyan);
    base.add(panel, BorderLayout.NORTH);

    mainView = new JList();
    mainView.setFont(new Font(rb.getString("panel.jWinDiff.font.name"), Font.PLAIN, 12));

    sp = new JScrollPane();
    sp.setViewportView(mainView);
    base.add(sp);

    // Now create each of the menus

    JMenuBar menuBar = new JMenuBar();

    // file
    JMenu menu = new JMenu();
    menu.setText(rb.getString("menu.file.text"));
    menu.setMnemonic(KeyEvent.VK_F);

    compareTargetsMenuItem = new JMenuItem();
    compareTargetsMenuItem.setText(rb.getString("menuItem.compareTargets.text"));
    compareTargetsMenuItem.setMnemonic(KeyEvent.VK_T);
    menu.add(compareTargetsMenuItem);

    menu.addSeparator();

    abortMenuItem = new JMenuItem();
    abortMenuItem.setText(rb.getString("menuItem.abort.text"));
    abortMenuItem.setMnemonic(KeyEvent.VK_A);
    abortMenuItem.setEnabled(false);
    menu.add(abortMenuItem);

    menu.addSeparator();

    saveFilelistMenuItem = new JMenuItem();
    saveFilelistMenuItem.setText(rb.getString("menuItem.saveFileList.text"));
    saveFilelistMenuItem.setMnemonic(KeyEvent.VK_S);
    menu.add(saveFilelistMenuItem);

    JMenuItem menuItem = new JMenuItem();
    menuItem.setText(rb.getString("menuItem.copyFiles.text"));
    menuItem.setMnemonic(KeyEvent.VK_C);
    menuItem.setEnabled(false);
    menu.add(menuItem);

    menuItem = new JMenuItem();
    menuItem.setText(rb.getString("menuItem.print.text"));
    menuItem.setMnemonic(KeyEvent.VK_P);
    menuItem.setEnabled(false);
    menu.add(menuItem);

    exitMenuItem = new JMenuItem();
    exitMenuItem.setText(rb.getString("menuItem.exit.text"));
    exitMenuItem.setMnemonic(KeyEvent.VK_X);
    menu.add(exitMenuItem);

    menuBar.add(menu);

    // edit
    menu = new JMenu();
    menu.setText(rb.getString("menu.edit.text"));
    menu.setMnemonic(KeyEvent.VK_E);

    editLeftMenuItem = new JMenuItem();
    editLeftMenuItem.setText(rb.getString("menuItem.editLeftFile.text"));
    editLeftMenuItem.setMnemonic(KeyEvent.VK_L);
    menu.add(editLeftMenuItem);

    editRightMenuItem = new JMenuItem();
    editRightMenuItem.setText(rb.getString("menuItem.editRightFile.text"));
    editRightMenuItem.setMnemonic(KeyEvent.VK_R);
    menu.add(editRightMenuItem);

    menuItem = new JMenuItem();
    menuItem.setText(rb.getString("menuItem.editCompositeFile.text"));
    menuItem.setMnemonic(KeyEvent.VK_C);
    menuItem.setEnabled(false);
    menu.add(menuItem);

    menu.addSeparator();

    setEditorMenuItem = new JMenuItem();
    setEditorMenuItem.setText(rb.getString("menuItem.setEditor.text"));
    setEditorMenuItem.setMnemonic(KeyEvent.VK_E);
    menu.add(setEditorMenuItem);

    menuBar.add(menu);

    // view
    ButtonGroup bg = new ButtonGroup();

    menu = new JMenu(rb.getString("menu.view.text"));
    menu.setMnemonic(KeyEvent.VK_V);

    viewOutline = new JCheckBoxMenuItem();
    viewOutline.setText(rb.getString("menuItem.outline.text"));
    viewOutline.setMnemonic(KeyEvent.VK_O);
    menu.add(viewOutline);
    bg.add(viewOutline);

    viewExpand = new JCheckBoxMenuItem();
    viewExpand.setText(rb.getString("menuItem.expand.text"));
    viewExpand.setMnemonic(KeyEvent.VK_E);
    menu.add(viewExpand);
    bg.add(viewExpand);

    menu.addSeparator();

    menuItem = new JCheckBoxMenuItem();
    menuItem.setText(rb.getString("menuItem.picture.text"));
    //      menuItem.setMnemonic(KeyEvent.VK_P); // M+p
    menuItem.setEnabled(false);
    menu.add(menuItem);

    menu.addSeparator();

    prevMenuItem = new JMenuItem();
    prevMenuItem.setText(rb.getString("menuItem.previousChange.text"));
    prevMenuItem.setMnemonic(KeyEvent.VK_P); // F7
    menu.add(prevMenuItem);

    nextMenuItem = new JMenuItem();
    nextMenuItem.setText(rb.getString("menuItem.nextChange.text"));
    nextMenuItem.setMnemonic(KeyEvent.VK_N); // F8
    menu.add(nextMenuItem);

    menu.addSeparator();

    rescanMenuItem = new JMenuItem();
    rescanMenuItem.setText(rb.getString("menuItem.rescanSelectedFile.text"));
    rescanMenuItem.setMnemonic(KeyEvent.VK_R);
    menu.add(rescanMenuItem);

    menuBar.add(menu);

    // expand
    menu = new JMenu(rb.getString("menu.expand.text"));
    menu.setMnemonic(KeyEvent.VK_X);

    bg = new ButtonGroup();

    showLeftOnly = new JCheckBoxMenuItem();
    showLeftOnly.setText(rb.getString("menuItem.leftFileOnly.text"));
    showLeftOnly.setMnemonic(KeyEvent.VK_F); // M+l
    showLeftOnly.setActionCommand(ShowExpandMode.left.name());
    menu.add(showLeftOnly);
    bg.add(showLeftOnly);

    showRightOnly = new JCheckBoxMenuItem();
    showRightOnly.setText(rb.getString("menuItem.rightFileOnly.text"));
    showRightOnly.setMnemonic(KeyEvent.VK_H); // M-r
    showRightOnly.setActionCommand(ShowExpandMode.right.name());
    menu.add(showRightOnly);
    bg.add(showRightOnly);

    showBoth = new JCheckBoxMenuItem();
    showBoth.setText(rb.getString("menuItem.bothFiles.text"));
    showBoth.setMnemonic(KeyEvent.VK_O); // M-b
    showBoth.setActionCommand(ShowExpandMode.both.name());
    showBoth.setSelected(true);
    menu.add(showBoth);
    bg.add(showBoth);

    menu.addSeparator();

    bg = new ButtonGroup();

    showLeftNums = new JCheckBoxMenuItem();
    showLeftNums.setText(rb.getString("menuItem.leftLineNumbers.text"));
    showLeftNums.setMnemonic(KeyEvent.VK_L);
    showLeftNums.setActionCommand(ShowNumMode.left.name());
    menu.add(showLeftNums);
    bg.add(showLeftNums);

    showRightNums = new JCheckBoxMenuItem();
    showRightNums.setText(rb.getString("menuItem.rightLineNumbers.text"));
    showRightNums.setMnemonic(KeyEvent.VK_R);
    showRightNums.setActionCommand(ShowNumMode.right.name());
    menu.add(showRightNums);
    bg.add(showRightNums);

    hideNums = new JCheckBoxMenuItem();
    hideNums.setText(rb.getString("menuItem.noLineNumbers.text"));
    hideNums.setMnemonic(KeyEvent.VK_N);
    hideNums.setActionCommand(ShowNumMode.none.name());
    hideNums.setSelected(true);
    menu.add(hideNums);
    bg.add(hideNums);

    menuBar.add(menu);

    // opts
    menu = new JMenu(rb.getString("menu.opts.text"));
    menu.setMnemonic(KeyEvent.VK_O);

    ignoreBlanks = new JCheckBoxMenuItem();
    ignoreBlanks.setText(rb.getString("menuItem.ignoreBlanks.text"));
    ignoreBlanks.setMnemonic(KeyEvent.VK_B);
    ignoreBlanks.setSelected(true);
    menu.add(ignoreBlanks);

    menu.addSeparator();

    menuItem = new JCheckBoxMenuItem(rb.getString("menuItem.monoColours.text"));
    menuItem.setMnemonic(KeyEvent.VK_M);
    menuItem.setEnabled(false);
    menu.add(menuItem);

    menu.addSeparator();

    showIdentical = new JCheckBoxMenuItem();
    showIdentical.setText(rb.getString("menuItem.showIdenticalFiles.text"));
    showIdentical.setMnemonic(KeyEvent.VK_I);
    showIdentical.setSelected(true);
    menu.add(showIdentical);

    showLeft = new JCheckBoxMenuItem();
    showLeft.setText(rb.getString("menuItem.showLeftOnlyFiles.text"));
    showLeft.setMnemonic(KeyEvent.VK_L);
    showLeft.setSelected(true);
    menu.add(showLeft);

    showRight = new JCheckBoxMenuItem();
    showRight.setText(rb.getString("menuItem.showRightOnlyFiles.text"));
    showRight.setMnemonic(KeyEvent.VK_R);
    showRight.setSelected(true);
    menu.add(showRight);

    showDifferent = new JCheckBoxMenuItem();
    showDifferent.setText(rb.getString("menuItem.showDifferentFiles.text"));
    showDifferent.setMnemonic(KeyEvent.VK_D);
    showDifferent.setSelected(true);
    menu.add(showDifferent);

    menuBar.add(menu);

    // mark
    menu = new JMenu();
    menu.setText(rb.getString("menu.mark.text"));
    menu.setMnemonic(KeyEvent.VK_K);

    markFileMenuItem = new JMenuItem();
    markFileMenuItem.setText(rb.getString("menuItem.markFile.text"));
    markFileMenuItem.setMnemonic(KeyEvent.VK_M); // M+m
    menu.add(markFileMenuItem);

    markPatternMenuItem = new JMenuItem();
    markPatternMenuItem.setText(rb.getString("menuItem.markPattern.text"));
    markPatternMenuItem.setMnemonic(KeyEvent.VK_P);
    menu.add(markPatternMenuItem);

    hideMarked = new JCheckBoxMenuItem();
    hideMarked.setText(rb.getString("menuItem.hideMarkedFiles.text"));
    hideMarked.setMnemonic(KeyEvent.VK_H);
    menu.add(hideMarked);

    toggleMarkedMenuItem = new JMenuItem();
    toggleMarkedMenuItem.setText(rb.getString("menuItem.toggleMarkedState.text"));
    toggleMarkedMenuItem.setMnemonic(KeyEvent.VK_T);
    menu.add(toggleMarkedMenuItem);

    menuBar.add(menu);

    // help
    menu = new JMenu();
    menu.setText(rb.getString("menu.help.text"));
    menu.setMnemonic(KeyEvent.VK_H);

    menuItem = new JMenuItem();
    menuItem.setText(rb.getString("menuItem.contents.text"));
    menuItem.setMnemonic(KeyEvent.VK_C);
    menuItem.setEnabled(false);
    menu.add(menuItem);

    menu.addSeparator();

    menuItem = new JMenuItem();
    menuItem.setText(rb.getString("menuItem.about.text"));
    menuItem.setMnemonic(KeyEvent.VK_A);
    menuItem.setEnabled(false);
    menu.add(menuItem);

    menuBar.add(menu);

    top.setJMenuBar(menuBar);

    // popup outline menu
    popupOutline = new JPopupMenu();

    markFileMenuItem.setMnemonic(KeyEvent.VK_M);
    popupOutline.add(markFileMenuItem);

    popupOutline.addSeparator();

    nextMenuItem2 = new JMenuItem();
    nextMenuItem2.setText(rb.getString("menuItem.nextChange.text"));
    nextMenuItem2.setMnemonic(KeyEvent.VK_N); // F8
    popupOutline.add(nextMenuItem2);

    prevMenuItem2 = new JMenuItem();
    prevMenuItem2.setText(rb.getString("menuItem.previousChange.text"));
    prevMenuItem2.setMnemonic(KeyEvent.VK_P); // F7
    popupOutline.add(prevMenuItem2);

    expandMenuItem = new JMenuItem();
    expandMenuItem.setText(rb.getString("button.changeMode.text.expand"));
    expandMenuItem.setMnemonic(KeyEvent.VK_E);
    popupOutline.add(expandMenuItem);

    rescanMenuItem2 = new JMenuItem();
    rescanMenuItem2.setText(rb.getString("menuItem.rescanSelectedFile.text"));
    rescanMenuItem2.setMnemonic(KeyEvent.VK_R);
    popupOutline.add(rescanMenuItem2);

    popupOutline.addSeparator();

    editLeftMenuItem2 = new JMenuItem();
    editLeftMenuItem2.setText(rb.getString("menuItem.editLeftFile.text"));
    editLeftMenuItem2.setMnemonic(KeyEvent.VK_L);
    popupOutline.add(editLeftMenuItem2);

    editRightMenuItem2 = new JMenuItem();
    editRightMenuItem2.setText(rb.getString("menuItem.editRightFile.text"));
    editRightMenuItem2.setMnemonic(KeyEvent.VK_R);
    popupOutline.add(editRightMenuItem2);

    menuItem = new JMenuItem();
    menuItem.setText(rb.getString("menuItem.editCompositeFile.text"));
    menuItem.setMnemonic(KeyEvent.VK_C);
    menuItem.setEnabled(false);
    popupOutline.add(menuItem);

    // popup expanded menu
    popupExpanded = new JPopupMenu();

    menuItem = popupExpanded.add(rb.getString("menuItem.showMoveDest.text"));
    menuItem.setMnemonic(KeyEvent.VK_S);
    menuItem.setEnabled(false);

    popupExpanded.addSeparator();

    nextMenuItem3 = new JMenuItem();
    nextMenuItem3.setText(rb.getString("menuItem.nextChange.text"));
    nextMenuItem3.setMnemonic(KeyEvent.VK_N); // F8
    popupExpanded.add(nextMenuItem3);

    prevMenuItem3 = new JMenuItem();
    prevMenuItem3.setText(rb.getString("menuItem.previousChange.text"));
    prevMenuItem3.setMnemonic(KeyEvent.VK_P); // F7
    popupExpanded.add(prevMenuItem3);

    outlineMenuItem = new JMenuItem();
    outlineMenuItem.setText(rb.getString("button.changeMode.text.outline"));
    outlineMenuItem.setMnemonic(KeyEvent.VK_O);
    popupExpanded.add(outlineMenuItem);

    rescanMenuItem3 = new JMenuItem();
    rescanMenuItem3.setText(rb.getString("menuItem.rescanSelectedFile.text"));
    rescanMenuItem3.setMnemonic(KeyEvent.VK_R);
    popupExpanded.add(rescanMenuItem3);

    popupExpanded.addSeparator();

    editLeftMenuItem3 = new JMenuItem();
    editLeftMenuItem3.setText(rb.getString("menuItem.editLeftFile.text"));
    editLeftMenuItem3.setMnemonic(KeyEvent.VK_L);
    popupExpanded.add(editLeftMenuItem3);

    editRightMenuItem3 = new JMenuItem();
    editRightMenuItem3.setText(rb.getString("menuItem.editRightFile.text"));
    editRightMenuItem3.setMnemonic(KeyEvent.VK_R);
    popupExpanded.add(editRightMenuItem3);

    menuItem = new JMenuItem();
    menuItem.setText(rb.getString("menuItem.editCompositeFile.text"));
    menuItem.setMnemonic(KeyEvent.VK_C);
    menuItem.setEnabled(false);
    popupExpanded.add(menuItem);

    // labels
    names = new JLabel();
    names.setForeground(Color.blue);
    panel.add(BorderLayout.WEST, names);

    paths = new JLabel();
    paths.setBorder(new BevelBorder(BevelBorder.LOWERED));
    panel.add(BorderLayout.CENTER, paths);

    // chageMode button
    changeMode = new JButton();
    changeMode.setMnemonic(KeyEvent.VK_D);
    panel.add(BorderLayout.EAST, changeMode);
  }