public void addKeyValue(String key,Object value){
  keys.add(key);
  resources.setThemeProperty(themeName,key,value);
  Collections.sort(keys);
  int row=keys.indexOf(key);
  fireTableRowsInserted(row,row);
  refreshTheme();
}

public void addKeyValue ( String key , Object value ) { keys . add ( key ) ; resources . setThemeProperty ( themeName , key , value ) ; Collections . sort ( keys ) ; int row = keys . indexOf ( key ) ; fireTableRowsInserted ( row , row ) ; refreshTheme ( ) ; }
this method is only used for constants !
