Tabnine Logo
JCheckBoxMenuItem.setForeground
Code IndexAdd Tabnine to your IDE (free)

How to use
setForeground
method
in
javax.swing.JCheckBoxMenuItem

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

origin: RPTools/maptool

item.setForeground(fgColor);
origin: org.biojava.thirdparty/forester

void customizeCheckBoxMenuItem( final JCheckBoxMenuItem item, final boolean is_selected ) {
  if ( item != null ) {
    item.setFont( MainFrame.menu_font );
    if ( !getConfiguration().isUseNativeUI() ) {
      item.setBackground( getConfiguration().getGuiMenuBackgroundColor() );
      item.setForeground( getConfiguration().getGuiMenuTextColor() );
    }
    item.setSelected( is_selected );
    item.addActionListener( this );
  }
}
origin: org.biojava.thirdparty/forester

void customizeCheckBoxMenuItem( final JCheckBoxMenuItem item, final boolean is_selected ) {
  if ( item != null ) {
    item.setFont( MainFrame.menu_font );
    if ( !getConfiguration().isUseNativeUI() ) {
      item.setBackground( getConfiguration().getGuiMenuBackgroundColor() );
      item.setForeground( getConfiguration().getGuiMenuTextColor() );
    }
    item.setSelected( is_selected );
    item.addActionListener( this );
  }
}
origin: MegaMek/mekhq

    .booleanOption(OPT_EDGE_HEADHIT));
cbMenuItem.setActionCommand(makeCommand(CMD_EDGE_TRIGGER, OPT_EDGE_HEADHIT));
if (person.getPrimaryRole() != Person.T_MECHWARRIOR) { cbMenuItem.setForeground(new Color(150, 150, 150)); }
cbMenuItem.addActionListener(this);
menu.add(cbMenuItem);
    .booleanOption(OPT_EDGE_TAC));
cbMenuItem.setActionCommand(makeCommand(CMD_EDGE_TRIGGER, OPT_EDGE_TAC));
if (person.getPrimaryRole() != Person.T_MECHWARRIOR) { cbMenuItem.setForeground(new Color(150, 150, 150)); }
cbMenuItem.addActionListener(this);
menu.add(cbMenuItem);
    .booleanOption(OPT_EDGE_KO));
cbMenuItem.setActionCommand(makeCommand(CMD_EDGE_TRIGGER, OPT_EDGE_KO));
if (person.getPrimaryRole() != Person.T_MECHWARRIOR) { cbMenuItem.setForeground(new Color(150, 150, 150)); }
cbMenuItem.addActionListener(this);
menu.add(cbMenuItem);
    .booleanOption(OPT_EDGE_EXPLOSION));
cbMenuItem.setActionCommand(makeCommand(CMD_EDGE_TRIGGER, OPT_EDGE_EXPLOSION));
if (person.getPrimaryRole() != Person.T_MECHWARRIOR) { cbMenuItem.setForeground(new Color(150, 150, 150)); }
cbMenuItem.addActionListener(this);
menu.add(cbMenuItem);
    .booleanOption(OPT_EDGE_MASC_FAILURE));
cbMenuItem.setActionCommand(makeCommand(CMD_EDGE_TRIGGER, OPT_EDGE_MASC_FAILURE));
if (person.getPrimaryRole() != Person.T_MECHWARRIOR) { cbMenuItem.setForeground(new Color(150, 150, 150)); }
cbMenuItem.addActionListener(this);
menu.add(cbMenuItem);
javax.swingJCheckBoxMenuItemsetForeground

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

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now