Pretty self-explanatory. Snap only runs via snap run netbeans
via the terminal, rather than through the icon via the menu.
I am using Xubuntu 19.04.
Also, I must apologies if this is not a support forum, but it seems the be the most relevant place. Cheers.