Tabnine Logo
JCheckBoxMenuItem.paint
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JLabel (javax.swing)
  • JTextField (javax.swing)
  • Best IntelliJ plugins
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