Codota Logo
JCheckBoxMenuItem.setState
Code IndexAdd Codota to your IDE (free)

How to use
setState
method
in
javax.swing.JCheckBoxMenuItem

Best Java code snippets using javax.swing.JCheckBoxMenuItem.setState (Showing top 20 results out of 315)

  • Common ways to obtain JCheckBoxMenuItem
private void myMethod () {
JCheckBoxMenuItem j =
  • Codota Iconnew JCheckBoxMenuItem()
  • Codota IconString str;new JCheckBoxMenuItem(str)
  • Codota IconAction action;new JCheckBoxMenuItem(action)
  • Smart code suggestions by Codota
}
origin: chewiebug/GCViewer

/**
 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
 */
@Override
public void actionPerformed(ActionEvent e) {
  if (e.getSource() == menuItemWatch) {
    watchToggle.setSelected(menuItemWatch.getState());
  }
  else {
    menuItemWatch.setState(watchToggle.isSelected());
  }
}
origin: stanfordnlp/CoreNLP

private void doTdiff() {
 doTdiff = !doTdiff;
 ((JCheckBoxMenuItem) tDiff).setState(doTdiff);
 // Only allow 2 active treebanks
 if(doTdiff) {
  List<FileTreeNode> activeTreebanks = FilePanel.getInstance().getActiveTreebanks();
  for(int i = 2; i < activeTreebanks.size(); i++)
   activeTreebanks.get(i).setActive(false);
 }
}
origin: skylot/jadx

private void toggleDeobfuscation() {
  boolean deobfOn = !settings.isDeobfuscationOn();
  settings.setDeobfuscationOn(deobfOn);
  settings.sync();
  deobfToggleBtn.setSelected(deobfOn);
  deobfMenuItem.setState(deobfOn);
  reOpenFile();
}
origin: skylot/jadx

private void setFlattenPackage(boolean value) {
  isFlattenPackage = value;
  settings.setFlattenPackage(isFlattenPackage);
  flatPkgButton.setSelected(isFlattenPackage);
  flatPkgMenuItem.setState(isFlattenPackage);
  Object root = treeModel.getRoot();
  if (root instanceof JRoot) {
    JRoot treeRoot = (JRoot) root;
    treeRoot.setFlatPackages(isFlattenPackage);
    reloadTree();
  }
}
origin: chewiebug/GCViewer

private void updateMenuItemState(InternalFrameEvent e) {
  getToolBar(e).getZoomComboBox().setSelectedItem(
      (int) (getSelectedGCDocument(e).getModelChart().getScaleFactor() * 1000.0) + "%");
  GCPreferences preferences = getSelectedGCDocument(e).getPreferences();
  for (Entry<String, JCheckBoxMenuItem> menuEntry : getMenuBar(e).getViewMenuItems().entrySet()) {
    JCheckBoxMenuItem item = menuEntry.getValue();
    item.setState(preferences.getGcLineProperty(menuEntry.getKey()));
  }
}
origin: skylot/jadx

flatPkgMenuItem.setState(isFlattenPackage);
heapUsageBarMenuItem.setState(settings.isShowHeapUsageBar());
heapUsageBarMenuItem.addActionListener(event -> {
  settings.setShowHeapUsageBar(!settings.isShowHeapUsageBar());
deobfMenuItem.setState(settings.isDeobfuscationOn());
origin: chewiebug/GCViewer

for (Entry<String, JCheckBoxMenuItem> menuEntry : ((GCViewerGuiMenuBar)gui.getJMenuBar()).getViewMenuItems().entrySet()) {
  JCheckBoxMenuItem item = menuEntry.getValue();
  item.setState(preferences.getGcLineProperty(menuEntry.getKey()));
origin: org.fudaa.framework.ctulu/ctulu-ui

/**
 * Convenience method for obtaining the pre-generated main toolbar
 */
public JToolBar getToolBarMain(boolean isShowing) {
 if (jToolBarMain != null) {
  jcbmiViewToolbarMain.setState(isShowing);
  return jToolBarMain;
 }
 return (JToolBar) null;
}
origin: org.fudaa.framework.ctulu/ctulu-ui

/**
 * Convenience method for obtaining the pre-generated main toolbar
 */
public JToolBar getToolBarStyles(boolean isShowing) {
 if (jToolBarStyles != null) {
  jcbmiViewToolbarStyles.setState(isShowing);
  return jToolBarStyles;
 }
 return (JToolBar) null;
}
origin: org.fudaa.framework.ctulu/ctulu-ui

/**
 * Convenience method for obtaining the pre-generated toolbar
 */
public JToolBar getToolBar(boolean isShowing) {
 if (jToolBar != null) {
  jcbmiViewToolbar.setState(isShowing);
  return jToolBar;
 }
 return (JToolBar) null;
}
origin: org.apache.river.examples/browser

private void reset() {
ssuper.setState(false);
esuper.setState(false);
sclass.setState(false);
resetTmpl();
}
origin: edu.toronto.cs.savant/savant-core

private void cycleDisplayMode() {
  if(modeItems == null) return;
  modeItems[drawModePosition].setState(false);
  drawModePosition++;
  DrawingMode[] drawModes = mainTrack.getValidDrawingModes();
  if (drawModePosition >= drawModes.length) drawModePosition = 0;
  modeItems[drawModePosition].setState(true);
  mainTrack.setDrawingMode(drawModes[drawModePosition]);
}
origin: org.netbeans.api/org-netbeans-modules-bugtracking

  @Override
  public JMenuItem getPopupPresenter() {
    if(item == null) {
      item = new JCheckBoxMenuItem(this);
      Boolean b = getAutoRefresh();
      if(b != null) {
        item.setState(b);
      }
    }
    return item;
  }
}    
origin: org.scijava/scijava-ui-swing

private JCheckBoxMenuItem recordCallingClassMenuItem() {
  JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem();
  menuItem.setState(false);
  menuItem.setAction(new AbstractAction("record calling class") {
    @Override
    public void actionPerformed(ActionEvent e) {
      recorder.setRecordCallingClass(menuItem.getState());
      updateFilter();
    }
  });
  return menuItem;
}
origin: senbox-org/s1tbx

public JCheckBoxMenuItem createCheckedMenuItem(final String name, final JMenu parent, boolean state) {
  final JCheckBoxMenuItem item = new JCheckBoxMenuItem(name);
  item.setHorizontalTextPosition(JMenuItem.RIGHT);
  item.addActionListener(this);
  item.setState(state);
  parent.add(item);
  return item;
}
origin: sc.fiji/3D_Viewer

public void showPopup(final MouseEvent e) {
  content = univ.getPicker().getPickedContent(e.getX(), e.getY());
  if (content == null) return;
  univ.select(content);
  shaded.setState(content.isShaded());
  saturated.setState(content.isSaturatedVolumeRendering());
  if (popup.isPopupTrigger(e)) popup.show(e.getComponent(), e.getX(), e
    .getY());
}
origin: edu.stanford.nlp/stanford-corenlp

private void doTdiff() {
 doTdiff = !doTdiff;
 ((JCheckBoxMenuItem) tDiff).setState(doTdiff);
 // Only allow 2 active treebanks
 if(doTdiff) {
  List<FileTreeNode> activeTreebanks = FilePanel.getInstance().getActiveTreebanks();
  for(int i = 2; i < activeTreebanks.size(); i++)
   activeTreebanks.get(i).setActive(false);
 }
}
origin: robo-code/robocode

protected void onDialogHidden() {
  menu.getOptionsShowRankingCheckBoxMenuItem().setState(false);
  timerTask.stop();
  windowManager.removeBattleListener(battleObserver);
  dispose();
}
origin: edu.toronto.cs.savant/savant-core

  @Override
  public void actionPerformed(ActionEvent e) {
    if (((BAMTrack)mainTrack).toggleMappingQualityEnabled()) {
      baseQualityItem.setState(false);
    }
    graphPane.setRenderForced();
    graphPane.repaint();
  }
});
origin: edu.toronto.cs.savant/savant-core

public final void displayBookmarksPanel() {
  MiscUtils.setFrameVisibility("Bookmarks", true, auxDockingManager);
  auxDockingManager.toggleAutohideState("Bookmarks");
  bookmarksItem.setState(true);
  auxDockingManager.setActive(false);
  MiscUtils.setFrameVisibility("Variation", true, auxDockingManager);
  auxDockingManager.toggleAutohideState("Variation");
  auxDockingManager.setActive(false);
}
javax.swingJCheckBoxMenuItemsetState

Popular methods of JCheckBoxMenuItem

  • <init>
  • setSelected
  • addActionListener
  • isSelected
  • setEnabled
  • setText
  • getState
  • addItemListener
  • setMnemonic
  • setToolTipText
  • setActionCommand
  • setAccelerator
  • setActionCommand,
  • setAccelerator,
  • setAction,
  • getText,
  • setIcon,
  • setName,
  • getModel,
  • addChangeListener,
  • getActionCommand

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JLabel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now