1 | static void makeTableUneditable(JTable table) { |
2 | for (int c = 0; c < table.getColumnCount(); c++) { |
3 | Class<?> col_class = table.getColumnClass(c); |
4 | //O ed = table.getDefaultEditor(col_class); |
5 | //print("Column " + c + " class: " + col_class + " editor: " + ed); |
6 | table.setDefaultEditor(col_class, null); // remove editor |
7 | } |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003643 |
Snippet name: | makeTableUneditable - now usually not required anymore |
Eternal ID of this version: | #1003643/5 |
Text MD5: | 89f410c7522ff6c2c66d4d4165edade9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-04 18:11:07 |
Source code size: | 345 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 620 / 762 |
Version history: | 4 change(s) |
Referenced in: | [show references] |