public OptionsPanel (String categoryID, CategoryModel categoryModel) {
this.categoryModel = categoryModel;
// init UI components, layout and actions, and add some default values
initUI(categoryID);
if (getActionMap().get("SEARCH_OPTIONS") == null) {//NOI18N
InputMap inputMap = getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
if(Utilities.isMac()) {
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.META_MASK), "SEARCH_OPTIONS");//NOI18N
// Mac cloverleaf symbol
hintText = Bundle.Filter_Textfield_Hint("\u2318+F");
} else {
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.CTRL_MASK), "SEARCH_OPTIONS");//NOI18N
hintText = Bundle.Filter_Textfield_Hint("Ctrl+F");
}
getActionMap().put("SEARCH_OPTIONS", new SearchAction());//NOI18N
}
}
OptionsPanel.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录