Libraryless. Click here for Pure Java version (14661L/101K).
1 | !7 |
2 | |
3 | module MTB > DynSingleFunctionWithPrintLog { |
4 | void doIt { |
5 | setRenderer(TextChangingTableCellRenderer(f reverseString)); |
6 | } |
7 | |
8 | void setRenderer(final DefaultTableCellRenderer renderer) { |
9 | O mod = dm_findModule("#1019954/TaskBar_dev"); |
10 | if (mod == null) ret with print("Task bar not found"); |
11 | final JTable table = dm_get(mod, 'table); |
12 | if (table == null) ret with print("No table"); |
13 | swing { |
14 | TableColumn col = table.getColumnModel().getColumn(0); |
15 | print("Old renderer: " + col.getCellRenderer()); |
16 | col.setCellRenderer(renderer); |
17 | } |
18 | } |
19 | |
20 | void cleanMeUp { |
21 | setRenderer(null); |
22 | } |
23 | } |
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: | 292 / 393 |
Version history: | 1 change(s) |
Referenced in: | [show references] |