本文整理了Java中javax.swing.JMenuItem.getMargin()
方法的一些代码示例,展示了JMenuItem.getMargin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.getMargin()
方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称: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)) {
内容来源于网络,如有侵权,请联系作者删除!