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

21
LINES

< > BotCompany Repo | #1004431 // showTableWithSearcher

JavaX fragment (include)

1  
static JTable showTableWithSearcher(final O data) {
2  
  ret (JTable) swingAndWait(func {
3  
    JTable table = tableWithToolTips();
4  
    dataToTable_uneditable(table, data);
5  
    showFrame(tableWithSearcher(table));
6  
    ret table;
7  
  });
8  
}
9  
10  
static JTable showTableWithSearcher(O data, S title) {
11  
  ret showTableWithSearcher(null, data, title);
12  
}
13  
14  
static JTable showTableWithSearcher(JTable table, O data, S title) {
15  
  if (table == null)
16  
    table = showTableWithSearcher(data);
17  
  else
18  
    dataToTable_uneditable(table, data);
19  
  setFrameTitle(table, title);
20  
  ret table;
21  
}

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: 482 / 506
Referenced in: [show references]