コード例 #1
0
ファイル: MainView.java プロジェクト: fireaxil/NSO_Tracker
  public MainView() {

    // set some system-wide UI defaults so that everything appears correctly
    UIManager.put("TextField.inactiveForeground", new ColorUIResource(Color.BLACK));
    UIManager.put("TextArea.inactiveForeground", new ColorUIResource(Color.BLACK));
    UIManager.put("ComboBox.disabledForeground", new ColorUIResource(Color.BLACK));

    _model = new MainModel(this); // initialize the under-the-hood functionality of the client
  }
コード例 #2
0
 private ActionMap getActionMap() {
   ActionMap actionMap = (ActionMap) UIManager.get("Grid.actionMap");
   if (actionMap == null) {
     actionMap = createActionMap();
     if (actionMap != null) {
       UIManager.put("Grid.actionMap", actionMap);
     }
   }
   return actionMap;
 }