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

How to use
setHorizontalTextPosition
method
in
javax.swing.JCheckBoxMenuItem

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

origin: stackoverflow.com

 JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem("Check Me", null, true);
cbmi.setMargin(new java.awt.Insets(5, 25, 5, 5));
cbmi.setIconTextGap(15);
cbmi.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
helpMenu.add(cbmi);
origin: senbox-org/s1tbx

public JCheckBoxMenuItem createCheckedMenuItem(final String name, final JMenu parent, boolean state) {
  final JCheckBoxMenuItem item = new JCheckBoxMenuItem(name);
  item.setHorizontalTextPosition(JMenuItem.RIGHT);
  item.addActionListener(this);
  item.setState(state);
  parent.add(item);
  return item;
}
origin: org.fudaa.framework.ebli/ebli-3d

public final JMenuItem addMenuItem(final String _s, final String _cmd, final boolean _enabled, final boolean _value) {
 // BuIcon icon=BuLib.loadCommandIcon(_cmd);
 final JCheckBoxMenuItem r = new JCheckBoxMenuItem();
 r.setName("cb" + _cmd);
 r.setActionCommand(_cmd);
 r.setText(_s);
 // r.setIcon(icon);
 r.setHorizontalTextPosition(SwingConstants.RIGHT);
 r.addActionListener(this);
 r.setEnabled(_enabled);
 r.setSelected(_value);
 this.add(r);
 return r;
}
javax.swingJCheckBoxMenuItemsetHorizontalTextPosition

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

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JOptionPane (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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