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

50
LINES

< > BotCompany Repo | #1001617 // showTable

JavaX fragment (include)

static bool showTable_searcher = true;

static JTable showTable(O data) {
  ret dataToTable_uneditable(data);
}

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

static JTable showTable(O data, S title) {
  ret dataToTable_uneditable(data, title);
}

static JTable showTable(JTable table, O data) {
  ret showTable(table, data, autoFrameTitle());
}

static JTable showTable(O data, JTable table) {
  ret showTable(table, data);
}

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

static JTable showTable() {
  ret showTable(new ArrayList<L<S>>(), new ArrayList<S>());
}

static JTable showTable(S title) {
  ret showTable(new ArrayList<L<S>>(), new ArrayList<S>(), title);
}

static JTable showTable(L<L<S>> rows, L<S> cols) {
  ret showTable(rows, cols, autoFrameTitle());
}
  
static JTable showTable(L<L<S>> rows, L<S> cols, S title) {
  JTable tbl = sexyTable();
  fillTableWithStrings(tbl, rows, cols);
  showFrame(title, tbl);
  return tbl;
}

Author comment

Began life as a copy of #1001458

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001617
Snippet name: showTable
Eternal ID of this version: #1001617/2
Text MD5: aa55bded4b0e11bf11a980e85d4c77fc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-17 15:46:10
Source code size: 1192 bytes / 50 lines
Pitched / IR pitched: No / No
Views / Downloads: 760 / 1163
Version history: 1 change(s)
Referenced in: [show references]