Uses 3874K of libraries. Click here for Pure Java version (4064L/29K/106K).
!7 p-substance { final JTable table = showTable(makeData()); addToWindow(table, jbutton("Update", r { Map<S, Int> widths = tableColumnWidthsByName(table); printStruct("Widths", widths); showTable(table, makeData()); tableSetColumnWidths_debug = true; //tableSetColumnWidths(table, widths); tableSetColumnPreferredWidths(table, widths); })); } static L makeData() { ret ll( litorderedmap("Hello" := "World", "How" := randomID()), litorderedmap("Hello" := "Boys", "How" := "Whatever")); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv
No comments. add comment
Snippet ID: | #1007219 |
Snippet name: | Try preserving JTable column widths upon data change [should now be automatic] |
Eternal ID of this version: | #1007219/17 |
Text MD5: | 0e2397ae42ef7bb79c33ab5a51d83812 |
Transpilation MD5: | 53a28e14881fb52a65c84e7f4b7f8ede |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-24 12:04:07 |
Source code size: | 546 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 493 / 635 |
Version history: | 16 change(s) |
Referenced in: | -