There are a few ways that you could do it, but the easiest might be to
have the action disabled by default and then call setEnabled(true)
when that TopComponent is created.
On Mon, Jun 29, 2009 at 8:14 AM,
theunsheydenrych<
theunsheydenrych@...> wrote:
> HI
>
> I have a Netbeans module, that install a menu item under the windows main menu item.
>
> I would like this menu item to be disabled until a TopComponent of a certain type is created?
>
>
>
> How would i do that?
>
>
>
> Thanks in advance
>
>
>
>
>
--
Tom Wheeler
http://www.tomwheeler.com/