if (target instanceof JPopupMenu) {
((JPopupMenu)target).putClientProperty(
BasicMenuItemUI.MAX_ARROW_ICON_WIDTH, null);
((JPopupMenu)target).putClientProperty(
BasicMenuItemUI.MAX_CHECK_ICON_WIDTH, null);
((JPopupMenu)target).putClientProperty(
BasicMenuItemUI.MAX_ICON_WIDTH, null);
((JPopupMenu)target).putClientProperty(
BasicMenuItemUI.MAX_TEXT_WIDTH, null);
((JPopupMenu)target).putClientProperty(
BasicMenuItemUI.MAX_ACC_WIDTH, null);
((JPopupMenu)target).putClientProperty(
BasicMenuItemUI.MAX_ICON_OFFSET, null);
((JPopupMenu)target).putClientProperty(
BASICMENUITEMUI_MAX_TEXT_OFFSET, null);
}
return super.preferredLayoutSize(target);