?? tabpopupaction.java
字號(hào):
/*
* *****************************************************
* 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.*;
/**
* 右鍵彈出菜單監(jiān)聽器。
* @author wbz
*
*/
public class TabPopupAction implements ActionListener
{
/**
* 當(dāng)在指定標(biāo)簽上點(diǎn)擊右鍵并選擇close時(shí),調(diào)用此函數(shù)。
* 此函數(shù)功能是:移除鼠標(biāo)所選定的標(biāo)簽和對(duì)應(yīng)的面板。
*/
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 );
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -