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

How to use
isSelected
method
in
javax.swing.JCheckBoxMenuItem

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

  • 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: log4j/log4j

protected List updateView() {
 ArrayList updatedList = new ArrayList();
 Iterator columnIterator = _columns.iterator();
 while (columnIterator.hasNext()) {
  LogTableColumn column = (LogTableColumn) columnIterator.next();
  JCheckBoxMenuItem result = getLogTableColumnMenuItem(column);
  // check and see if the checkbox is checked
  if (result.isSelected()) {
   updatedList.add(column);
  }
 }
 return updatedList;
}
origin: log4j/log4j

private void processLogLevels(Map logLevelMenuItems, StringBuffer xml) {
 xml.append("\t<loglevels>\r\n");
 Iterator it = logLevelMenuItems.keySet().iterator();
 while (it.hasNext()) {
  LogLevel level = (LogLevel) it.next();
  JCheckBoxMenuItem item = (JCheckBoxMenuItem) logLevelMenuItems.get(level);
  exportLogLevelXMLElement(level.getLabel(), item.isSelected(), xml);
 }
 xml.append("\t</loglevels>\r\n");
}
origin: log4j/log4j

private void processLogTableColumns(List logTableColumnMenuItems, StringBuffer xml) {
 xml.append("\t<logtablecolumns>\r\n");
 Iterator it = logTableColumnMenuItems.iterator();
 while (it.hasNext()) {
  LogTableColumn column = (LogTableColumn) it.next();
  JCheckBoxMenuItem item = _monitor.getTableColumnMenuItem(column);
  exportLogTableColumnXMLElement(column.getLabel(), item.isSelected(), xml);
 }
 xml.append("\t</logtablecolumns>\r\n");
}
origin: deathmarine/Luyten

  @Override
  public void actionPerformed(ActionEvent e) {
    luytenPrefs.setExitByEscEnabled(exitByEscEnabled.isSelected());
  }
});
origin: deathmarine/Luyten

  @Override
  public void actionPerformed(ActionEvent e) {
    luytenPrefs.setSingleClickOpenEnabled(singleClickOpenEnabled.isSelected());
  }
});
origin: deathmarine/Luyten

  @Override
  public void actionPerformed(ActionEvent e) {
    luytenPrefs.setFilterOutInnerClassEntries(filterOutInnerClassEntries.isSelected());
    mainWindow.onTreeSettingsChanged();
  }
});
origin: deathmarine/Luyten

  @Override
  public void actionPerformed(ActionEvent e) {
    luytenPrefs.setPackageExplorerStyle(packageExplorerStyle.isSelected());
    mainWindow.onTreeSettingsChanged();
  }
});
origin: log4j/log4j

 public boolean passes(LogRecord record) {
  String NDC = record.getNDC();
  CategoryPath path = new CategoryPath(record.getCategory());
  if (NDC == null || _NDCTextFilter == null) {
   return false;
  } else if (NDC.toLowerCase().indexOf(_NDCTextFilter.toLowerCase()) == -1) {
   return false;
  } else {
   return getMenuItem(record.getLevel()).isSelected() &&
     _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
  }
 }
};
origin: log4j/log4j

item.setSelected(getValue(map, SELECTED).equalsIgnoreCase("true"));
if (item.isSelected()) {
 selectedColumns.add(column);
origin: marytts/marytts

private void jCheckBoxMenuItem_SpeakerWindowActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jCheckBoxMenuItem_SpeakerWindowActionPerformed
  // Activate speaker window if checkbox menu item was not selected
  // Else close speaker window if checkbox menu item was already selected
  if (jCheckBoxMenuItem_SpeakerWindow.isSelected()) {
    speakerWin.updateSessionStatus(IconSet.STOP_64X64);
    speakerWin.setVisible(true);
  } else {
    speakerWin.setVisible(false);
  }
}// GEN-LAST:event_jCheckBoxMenuItem_SpeakerWindowActionPerformed
origin: deathmarine/Luyten

settings.setFlattenSwitchBlocks(flattenSwitchBlocks.isSelected());
settings.setForceExplicitImports(forceExplicitImports.isSelected());
settings.setShowSyntheticMembers(showSyntheticMembers.isSelected());
settings.setExcludeNestedTypes(excludeNestedTypes.isSelected());
settings.setForceExplicitTypeArguments(forceExplicitTypes.isSelected());
settings.setRetainRedundantCasts(retainRedundantCasts.isSelected());
settings.setIncludeErrorDiagnostics(showDebugInfo.isSelected());
settings.setUnicodeOutputEnabled(unicodeReplacement.isSelected());
settings.setShowDebugLineNumbers(debugLineNumbers.isSelected());
  settings.setLanguage(Languages.bytecodeAst());
settings.setIncludeLineNumbersInBytecode(bytecodeLineNumbers.isSelected());
origin: log4j/log4j

 public boolean passes(LogRecord record) {
  CategoryPath path = new CategoryPath(record.getCategory());
  return
    getMenuItem(record.getLevel()).isSelected() &&
    _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
 }
};
origin: apache/pdfbox

/**
 * State if subsampling for image rendering shall be used.
 * 
 * @return the selection state
 */
public static boolean isAllowSubsampling()
{
  return instance.allowSubsampling.isSelected();
}

origin: apache/pdfbox

/**
 * State if the article beads shall be shown.
 * 
 * @return the selection state
 */
public static boolean isShowTextStripperBeads()
{
  return instance.showTextStripperBeads.isSelected();
}

origin: apache/pdfbox

/**
 * State if the TextStripper TextPositions shall be shown.
 * 
 * @return the selection state
 */
public static boolean isShowTextStripper()
{
  return instance.showTextStripper.isSelected();
}

origin: apache/pdfbox

/**
 * State if the bounds of individual glyphs shall be shown.
 * 
 * @return the selection state
 */
public static boolean isShowGlyphBounds()
{
  return instance.showGlyphBounds.isSelected();
}

origin: apache/pdfbox

/**
 * State if the fonts bounding box shall be shown.
 * 
 * @return the selection state
 */
public static boolean isShowFontBBox()
{
  return instance.showFontBBox.isSelected();
}

origin: winder/Universal-G-Code-Sender

  public void saveSettings() {
    backend.getSettings().setScrollWindowEnabled(scrollWindowMenuItem.isSelected());
    backend.getSettings().setVerboseOutputEnabled(showVerboseMenuItem.isSelected());
  }
}
origin: winder/Universal-G-Code-Sender

private void checkScrollWindow() {
  // Console output.
  DefaultCaret caret = (DefaultCaret)consoleTextArea.getCaret();
  if (scrollWindowMenuItem.isSelected()) {
    caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
    consoleTextArea.setCaretPosition(consoleTextArea.getDocument().getLength());
  } else {
    caret.setUpdatePolicy(DefaultCaret.NEVER_UPDATE);
  }
}
origin: ron190/jsql-injection

/**
 * Add Binary console to bottom panel.
 */
public void insertBooleanTab() {
  this.buildI18nTab(
    "CONSOLE_BINARY_LABEL",
    "CONSOLE_BINARY_TOOLTIP",
    HelperUi.ICON_BINARY,
    new LightScrollPane(1, 0, 0, 0, PanelConsoles.this.binaryTextArea),
    1 + (MediatorGui.menubar().getChunkMenu().isSelected() ? 1 : 0)
  );
}
javax.swingJCheckBoxMenuItemisSelected

Popular methods of JCheckBoxMenuItem

  • <init>
  • setSelected
  • addActionListener
  • setEnabled
  • setState
  • 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