Package javax.swing

Examples of javax.swing.JCheckBoxMenuItem.addActionListener()


            String actionCommand, KeyStroke keyStroke){
        JCheckBoxMenuItem cbkMenuItem = new JCheckBoxMenuItem(JMeterUtils.getResString(resource));
        cbkMenuItem.setName(resource);
        cbkMenuItem.setActionCommand(actionCommand);
        cbkMenuItem.setAccelerator(keyStroke);
        cbkMenuItem.addActionListener(ActionRouter.getInstance());
        return cbkMenuItem;
    }
}
View Full Code Here


    dateFormatChangePopup.add(isoButton);
    dateFormatChangePopup.add(simpleTimeButton);

    final JCheckBoxMenuItem menuItemToggleToolTips =
      new JCheckBoxMenuItem("Show ToolTips");
    menuItemToggleToolTips.addActionListener(
      new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          preferenceModel.setToolTips(menuItemToggleToolTips.isSelected());
        }
      });
View Full Code Here

      });
    menuItemToggleToolTips.setIcon(new ImageIcon(ChainsawIcons.TOOL_TIP));

    final JCheckBoxMenuItem menuItemLoggerTree =
      new JCheckBoxMenuItem("Show Logger Tree panel");
    menuItemLoggerTree.addActionListener(
      new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          preferenceModel.setLogTreePanelVisible(
            menuItemLoggerTree.isSelected());
        }
View Full Code Here

      });
    menuItemLoggerTree.setIcon(new ImageIcon(ChainsawIcons.WINDOW_ICON));

    final JCheckBoxMenuItem menuItemScrollBottom =
      new JCheckBoxMenuItem("Scroll to bottom");
    menuItemScrollBottom.addActionListener(
      new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          preferenceModel.setScrollToBottom(menuItemScrollBottom.isSelected());
        }
      });
View Full Code Here

    menuItemScrollBottom.setIcon(
      new ImageIcon(ChainsawIcons.SCROLL_TO_BOTTOM));

    final JCheckBoxMenuItem menuItemToggleDetails =
      new JCheckBoxMenuItem("Show Detail Pane");
    menuItemToggleDetails.addActionListener(
      new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          preferenceModel.setDetailPaneVisible(
            menuItemToggleDetails.isSelected());
        }
View Full Code Here

        graphComponent);
    JCheckBoxMenuItem item = new JCheckBoxMenuItem(
        mxResources.get("magnifyPage"));
    item.setSelected(graphOutline.isFitPage());

    item.addActionListener(new ActionListener()
    {
      /**
       *
       */
      public void actionPerformed(ActionEvent e)
View Full Code Here

    JCheckBoxMenuItem item2 = new JCheckBoxMenuItem(
        mxResources.get("showLabels"));
    item2.setSelected(graphOutline.isDrawLabels());

    item2.addActionListener(new ActionListener()
    {
      /**
       *
       */
      public void actionPerformed(ActionEvent e)
View Full Code Here

    JCheckBoxMenuItem item3 = new JCheckBoxMenuItem(
        mxResources.get("buffering"));
    item3.setSelected(graphOutline.isTripleBuffered());

    item3.addActionListener(new ActionListener()
    {
      /**
       *
       */
      public void actionPerformed(ActionEvent e)
View Full Code Here

      getResourceString(prefix + ".name"));

    // Command
    String actionCommand = getResourceString(prefix + ".command");
    menuitem.setActionCommand(actionCommand);
    menuitem.addActionListener(this);
    menu.add(menuitem);
    return menuitem;
  }
}
View Full Code Here

        maMenuBar.add (aOptionsMenu);
        JCheckBoxMenuItem aCBItem;
        aCBItem = new JCheckBoxMenuItem ("Show Descriptions",
                                         Options.GetBoolean("ShowDescriptions"));
        aOptionsMenu.add (aCBItem);
        aCBItem.addActionListener (this);

        aCBItem = new JCheckBoxMenuItem ("Show Names",
                                         Options.GetBoolean ("ShowNames"));
        aOptionsMenu.add (aCBItem);
        aCBItem.addActionListener (this);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.