メニュー、コンテキストメニュー、ツールバーなどから起動できる NetBeans アクション (ActionListener または CookieAction) を作成します。
ActionListener
CookieAction