mercredi 1 juillet 2015

How to add submenu to MenuItem

I'm trying to add submenu to a MenuItem which exists in a popup menu in system tray. Is there any way to achieve this? I've found some solutions about submenus but they use JMenuItem, and TrayIcon only accepts PopupMenu which only accepts MenuItems.

Trying to achieve this with MenuItem:

Image

Aucun commentaire:

Enregistrer un commentaire