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