Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

23
LINES

< > BotCompany Repo | #1020350 // Modify Task Bar [fun module, dev.]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14661L/101K).

!7

module MTB > DynSingleFunctionWithPrintLog {
  void doIt {
    setRenderer(TextChangingTableCellRenderer(f reverseString));
  }
  
  void setRenderer(final DefaultTableCellRenderer renderer) {
    O mod = dm_findModule("#1019954/TaskBar_dev");
    if (mod == null) ret with print("Task bar not found");
    final JTable table = dm_get(mod, 'table);
    if (table == null) ret with print("No table");
    swing {
      TableColumn col = table.getColumnModel().getColumn(0);
      print("Old renderer: " + col.getCellRenderer());
      col.setCellRenderer(renderer);
    }
  }
  
  void cleanMeUp {
    setRenderer(null);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1020350
Snippet name: Modify Task Bar [fun module, dev.]
Eternal ID of this version: #1020350/2
Text MD5: 791fcd55a092cef089ac4ebd3b292457
Transpilation MD5: 89b967f7add5f1c101f78bc17e78fcda
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-15 02:34:26
Source code size: 651 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 291 / 390
Version history: 1 change(s)
Referenced in: