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

How to use
isEnabled
method
in
javax.swing.JCheckBoxMenuItem

Best Java code snippets using javax.swing.JCheckBoxMenuItem.isEnabled (Showing top 7 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: sc.fiji/Simple_Neurite_Tracer

} else if (source == xyCanvasMenuItem && xyCanvasMenuItem.isEnabled()) {
  toggleWindowVisibility(ThreePanes.XY_PLANE, xyCanvasMenuItem, e.getStateChange() == ItemEvent.DESELECTED);
} else if (source == zyCanvasMenuItem && zyCanvasMenuItem.isEnabled()) {
  toggleWindowVisibility(ThreePanes.ZY_PLANE, zyCanvasMenuItem, e.getStateChange() == ItemEvent.DESELECTED);
} else if (source == xzCanvasMenuItem && xzCanvasMenuItem.isEnabled()) {
  toggleWindowVisibility(ThreePanes.XZ_PLANE, xzCanvasMenuItem, e.getStateChange() == ItemEvent.DESELECTED);
} else if (plugin.use3DViewer && source == threeDViewerMenuItem && threeDViewerMenuItem.isEnabled()) {
  plugin.get3DUniverse().getWindow().setVisible(e.getStateChange() == ItemEvent.DESELECTED);
origin: triplea-game/triplea

private void addShowMapBlends() {
 showMapBlends = new JCheckBoxMenuItem("Show Map Blends");
 showMapBlends.setMnemonic(KeyEvent.VK_B);
 if (uiContext.getMapData().getHasRelief() && showMapDetails.isEnabled() && showMapDetails.isSelected()) {
  showMapBlends.setEnabled(true);
  showMapBlends.setSelected(TileImageFactory.getShowMapBlends());
 } else {
  showMapBlends.setSelected(false);
  showMapBlends.setEnabled(false);
 }
 showMapBlends.addActionListener(e -> {
  if (TileImageFactory.getShowMapBlends() == showMapBlends.isSelected()) {
   return;
  }
  TileImageFactory.setShowMapBlends(showMapBlends.isSelected());
  TileImageFactory.setShowMapBlendMode(uiContext.getMapData().getMapBlendMode());
  TileImageFactory.setShowMapBlendAlpha(uiContext.getMapData().getMapBlendAlpha());
  new Thread(() -> {
   frame.setScale(uiContext.getScale() * 100);
   frame.getMapPanel().updateCountries(gameData.getMap().getTerritories());
  }, "Triplea : Show map Blends thread").start();
 });
 add(showMapBlends);
}
origin: com.dorkbox/SystemTray

checkbox.setEnabled(entry.isEnabled());
checkbox.setChecked(entry.getState());
checkbox.setShortcut(entry.getMnemonic());
origin: com.github.axet/desktop

item.setTitle(new NSString(ch.getText()));
item.setImage(bm);
item.setEnabled(ch.isEnabled());
item.setState(
    ch.getState() ? NSCell.NSCellStateValue.NSOnState : NSCell.NSCellStateValue.NSOffState);
origin: org.biojava.thirdparty/forester

if ( ( _show_scale_cbmi != null ) && _show_scale_cbmi.isEnabled() ) {
  options.setShowScale( _show_scale_cbmi.isSelected() );
  options.setPhylogenyGraphicsType( PHYLOGENY_GRAPHICS_TYPE.CIRCULAR );
if ( ( _color_by_taxonomic_group_cbmi != null ) && _color_by_taxonomic_group_cbmi.isEnabled() ) {
  options.setColorByTaxonomicGroup( _color_by_taxonomic_group_cbmi.isSelected() );
if ( ( _right_line_up_domains_cbmi != null ) && _right_line_up_domains_cbmi.isEnabled() ) {
  options.setRightLineUpDomains( _right_line_up_domains_cbmi.isSelected() );
if ( ( _line_up_renderable_data_cbmi != null ) && _line_up_renderable_data_cbmi.isEnabled() ) {
  options.setLineUpRendarableNodeData( _line_up_renderable_data_cbmi.isSelected() );
origin: com.github.axet/desktop

item.setTitle(new NSString(ch.getText()));
item.setImage(bm);
item.setEnabled(ch.isEnabled());
item.setState(ch.getState() ? 1 : 0);
item.setTarget(action);
origin: org.biojava.thirdparty/forester

if ( ( _show_scale_cbmi != null ) && _show_scale_cbmi.isEnabled() ) {
  options.setShowScale( _show_scale_cbmi.isSelected() );
options.setShowConfidenceStddev( ( _show_confidence_stddev_cbmi != null )
    && _show_confidence_stddev_cbmi.isSelected() );
if ( ( _color_by_taxonomic_group_cbmi != null ) && _color_by_taxonomic_group_cbmi.isEnabled() ) {
  options.setColorByTaxonomicGroup( _color_by_taxonomic_group_cbmi.isSelected() );
  options.setPhylogenyGraphicsType( PHYLOGENY_GRAPHICS_TYPE.CIRCULAR );
if ( ( _right_line_up_domains_cbmi != null ) && _right_line_up_domains_cbmi.isEnabled() ) {
  options.setRightLineUpDomains( _right_line_up_domains_cbmi.isSelected() );
if ( ( _line_up_renderable_data_cbmi != null ) && _line_up_renderable_data_cbmi.isEnabled() ) {
  options.setLineUpRendarableNodeData( _line_up_renderable_data_cbmi.isSelected() );
javax.swingJCheckBoxMenuItemisEnabled

Popular methods of JCheckBoxMenuItem

  • <init>
  • setSelected
  • addActionListener
  • isSelected
  • setEnabled
  • setState
  • setText
  • getState
  • addItemListener
  • setMnemonic
  • setToolTipText
  • setActionCommand
  • setToolTipText,
  • 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