Beispiel #1
0
  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
  }
 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;
 }