Open an application or a window with an addons

Hi everyone,

I followed this tutorial and now I have my menu.

What I want is to open a window I made in java swing when I click the menu button, is that possible? (It would probably be better to open this window when I click a toolbar button or something).

I’m just starting with capella, so I haven’t mastered it yet!

Thank you!

Nbranas.