/**
* Handles the keys which have to be enabled all the time in the frame.
*/
private void dispatchKeyGeneral(KeyEvent e) {
int eventId = e.getID();
int key = e.getKeyCode();
if (eventId == KeyEvent.KEY_PRESSED) {
switch (key) {
case KeyEvent.VK_ESCAPE:
cancelWindow();
break;
case KeyEvent.VK_ENTER:
// if the textfield id the focus owner, do not save the object
if (jFTFObjAlphaVal.isFocusOwner() || jFTFDPIValue.isFocusOwner()) {
break;
}
savePreferences();
break;
default:
// do nothing
break;
}
}
}
UserConfigs.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:Pixie
作者:
评论列表
文章目录