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

How to use
paint
method
in
javax.swing.JCheckBoxMenuItem

Best Java code snippets using javax.swing.JCheckBoxMenuItem.paint (Showing top 2 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: org.fudaa.framework.ctulu/ctulu-bu

public void paint(Graphics _g)
{
 BuLib.setAntialiasing(this,_g);
 super.paint(_g);
}
origin: org.bitbucket.goalhub.simpleide/jedit

public void paint(Graphics g)
{
  super.paint(g);
  if(shortcut != null)
  {
    g.setFont(EnhancedMenuItem.acceleratorFont);
    g.setColor(getModel().isArmed() ?
      EnhancedMenuItem.acceleratorSelectionForeground :
      EnhancedMenuItem.acceleratorForeground);
    FontMetrics fm = g.getFontMetrics();
    Insets insets = getInsets();
    g.drawString(shortcut,getWidth() - (fm.stringWidth(
      shortcut) + insets.right + insets.left + 5),
      getFont().getSize() + (insets.top - 
      (OperatingSystem.isMacOSLF() ? 0 : 1))
      /* XXX magic number */);
  }
} //}}}
javax.swingJCheckBoxMenuItempaint

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

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • BoxLayout (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Option (scala)
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