javax.swing.JMenuItem.getMargin()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中javax.swing.JMenuItem.getMargin()方法的一些代码示例,展示了JMenuItem.getMargin()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.getMargin()方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:getMargin

JMenuItem.getMargin介绍

暂无

代码示例

代码示例来源:origin: com.jidesoft/jide-oss

protected void uninstallDefaults() {
  _painter = null;
  LookAndFeel.uninstallBorder(menuItem);
  menuItem.setBorderPainted(oldBorderPainted);
  if (menuItem.getMargin() instanceof UIResource)
    menuItem.setMargin(null);
  if (arrowIcon instanceof UIResource)
    arrowIcon = null;
  if (checkIcon instanceof UIResource)
    checkIcon = null;
}

代码示例来源:origin: com.jidesoft/jide-oss

protected void uninstallDefaults() {
  // PORTING: add 1
  _painter = null;
  LookAndFeel.uninstallBorder(menuItem);
  menuItem.setBorderPainted(oldBorderPainted);
  if (menuItem.getMargin() instanceof UIResource)
    menuItem.setMargin(null);
  if (arrowIcon instanceof UIResource)
    arrowIcon = null;
  if (checkIcon instanceof UIResource)
    checkIcon = null;
}

代码示例来源:origin: com.jidesoft/jide-oss

protected void uninstallDefaults() {
  LookAndFeel.uninstallBorder(menuItem);
  menuItem.setBorderPainted(oldBorderPainted);
  if (menuItem.getMargin() instanceof UIResource)
    menuItem.setMargin(null);
  if (arrowIcon instanceof UIResource)
    arrowIcon = null;
  if (checkIcon instanceof UIResource)
    checkIcon = null;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

/**	Uninstalls the defaults from the associated menu item */
protected void uninstallDefaults()
{
  LookAndFeel.uninstallBorder(menuItem);
  menuItem.setBorderPainted(oldBorderPainted);
  if (menuItem.getMargin() instanceof UIResource)
    menuItem.setMargin(null);
  if (arrowIcon instanceof UIResource)
    arrowIcon= null;
  if (checkIcon instanceof UIResource)
    checkIcon= null;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

if (menuItem.getMargin() == null
  || (menuItem.getMargin() instanceof UIResource))

代码示例来源:origin: nz.ac.waikato.cms.weka.thirdparty/bounce

if ( component instanceof JMenuItem) {
  if ( component instanceof JCheckBoxMenuItem || component instanceof JRadioButtonMenuItem && check == null) {
    margin = ((JMenuItem)component).getMargin(); 
    check = UIManager.getIcon( "CheckBoxMenuItem.checkIcon");

代码示例来源:origin: khuxtable/seaglass

if (menuItem.getMargin() == null || (menuItem.getMargin() instanceof UIResource)) {
  Insets insets = (Insets) style.get(context, prefix + ".margin");

代码示例来源:origin: khuxtable/seaglass

String prefix = getPropertyPrefix();
defaultTextIconGap = style.getInt(context, prefix + ".textIconGap", 4);
if (menuItem.getMargin() == null || (menuItem.getMargin() instanceof UIResource)) {
  Insets insets = (Insets) style.get(context, prefix + ".margin");

代码示例来源:origin: com.jidesoft/jide-oss

if (menuItem.getMargin() == null ||
    (menuItem.getMargin() instanceof UIResource)) {
  menuItem.setMargin(UIDefaultsLookup.getInsets(prefix + ".margin"));

代码示例来源:origin: com.jidesoft/jide-oss

if (menuItem.getMargin() == null ||
    (menuItem.getMargin() instanceof UIResource)) {
  menuItem.setMargin(UIDefaultsLookup.getInsets(prefix + ".margin"));

代码示例来源:origin: com.jidesoft/jide-oss

if (menuItem.getMargin() == null ||
    (menuItem.getMargin() instanceof UIResource)) {

相关文章

JMenuItem类方法