📄 openfileaction.java
字号:
import javax.swing.Action;
/**
* Represents the Import Action.
*
* @author kilo
* @created 2003年12月22日
*/
public final class OpenFileAction
extends mp3AbstractAction {
/**
* Description of the Field
*/
private final static String ACTION_COMMAND_KEY_ABOUT = "open-command";
/**
* Description of the Field
*/
private final static String NAME_ABOUT = "打开文件或目录";
/**
* Description of the Field
*/
private final static String SMALL_ICON_ABOUT = "open.png";
/**
* Description of the Field
*/
private final static String SHORT_DESCRIPTION_ABOUT = "打开目录或者mp3文件";
/**
* Description of the Field
*/
private final static String LONG_DESCRIPTION_ABOUT =
"Open file or directory from local disk";
/**
* Description of the Field
*/
private final static int MNEMONIC_KEY_ABOUT = 'O';
/**
* Constructor for the OpenFileAction object
*/
public OpenFileAction() {
putValue( Action.NAME, NAME_ABOUT );
putValue( Action.SMALL_ICON, getIcon( SMALL_ICON_ABOUT ) );
putValue( Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_ABOUT );
putValue( Action.LONG_DESCRIPTION, LONG_DESCRIPTION_ABOUT );
putValue( Action.MNEMONIC_KEY, new Integer( MNEMONIC_KEY_ABOUT ) );
putValue( Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_ABOUT );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -