OptionsPanel.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
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
       }
   }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号