目录

我的学习分享

记录精彩的程序人生

【Netbeans Platform】如何去掉TopComponent Tab页上的右键菜单

在TopComponent的实现类中覆盖getActions方法并返回null

    /**  
    * 去掉tab标签上的右键菜单  
    * @return   
     */  
    @Override  
    public Action[] getActions() {  
         return null;  
    }