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

8
LINES

< > BotCompany Repo | #1003643 - makeTableUneditable - now usually not required anymore

JavaX fragment (include)

static void makeTableUneditable(JTable table) {
  for (int c = 0; c < table.getColumnCount(); c++) {
    Class<?> col_class = table.getColumnClass(c);
    //O ed = table.getDefaultEditor(col_class);
    //print("Column " + c + " class: " + col_class + " editor: " + ed);
    table.setDefaultEditor(col_class, null); // remove editor
  }
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

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: 312 / 435
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1003643 & http://1003643.tinybrain.de