⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tabpopupaction.java

📁 用来为垂直搜索引擎抓取数据的采集系统
💻 JAVA
字号:
/*
 * *****************************************************
 * Copyright (c) 2005 IIM Lab. All  Rights Reserved.
 * Created by xuehao at 2005-10-12
 * Contact: zxuehao@mail.ustc.edu.cn
 * *****************************************************
 */

package org.indigo.gui.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.indigo.gui.*;
/**
 * 右键弹出菜单监听器。
 * @author wbz
 *
 */
public class TabPopupAction  implements ActionListener
{
/**
 * 当在指定标签上点击右键并选择close时,调用此函数。
 * 此函数功能是:移除鼠标所选定的标签和对应的面板。
 */
    public void actionPerformed(ActionEvent e)
    {
        int index;
        index = ViewManager.getInstance().getTabbedPane().getSelectedIndex();
        //if( index==0 )
        //    return ;
        
        String title=null;
        title = ViewManager.getInstance().getTabbedPane().getTitleAt( index );
//        System.out.println( title );
        ViewManager.getInstance().removeInTab( title );
        ViewManager.getInstance().removeTabbedPane( index );
        
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -