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

21
LINES

< > BotCompany Repo | #1004431 // showTableWithSearcher

JavaX fragment (include)

static JTable showTableWithSearcher(final O data) {
  ret (JTable) swingAndWait(func {
    JTable table = tableWithToolTips();
    dataToTable_uneditable(table, data);
    showFrame(tableWithSearcher(table));
    ret table;
  });
}

static JTable showTableWithSearcher(O data, S title) {
  ret showTableWithSearcher(null, data, title);
}

static JTable showTableWithSearcher(JTable table, O data, S title) {
  if (table == null)
    table = showTableWithSearcher(data);
  else
    dataToTable_uneditable(table, data);
  setFrameTitle(table, title);
  ret table;
}

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: #1004431
Snippet name: showTableWithSearcher
Eternal ID of this version: #1004431/1
Text MD5: 00d55b1eb0c7f5357ded58a3e09f2405
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-26 21:56:32
Source code size: 583 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 505
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)