Prevent empty popup menu from showing if menu has no child items
This commit is contained in:
parent
4229e71352
commit
53750cffa2
1 changed files with 6 additions and 0 deletions
|
@ -44,4 +44,10 @@ public class TranslatedJMenu extends JMenu
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEnabled()
|
||||||
|
{
|
||||||
|
return super.isEnabled() && getMenuComponentCount() > 0;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue