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

17
LINES

< > BotCompany Repo | #1016826 // Test jDynamicTree with updates (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (5018L/36K).

!7

static int n = 3;

p-subst {
  swingBiggerFonts();
  
  final JTree tree;
  tree = jDynamicTree("Root", func(S s) -> L<S> {
    ll(s + "/child 1", s + "/child 2")
  }, keepChildrenOnCollapse := true);
  showFrame(tree);
  
  doEvery(5.0, r {
    jDynamicTree_addToNode(tree, "Root", "child " + n++)
  });
}

Author comment

Began life as a copy of #1016045

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016826
Snippet name: Test jDynamicTree with updates (OK)
Eternal ID of this version: #1016826/6
Text MD5: 2c286e788856e456959c568480d891c1
Transpilation MD5: acd66ffc6b6dda1125880389052356b5
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-03 16:45:08
Source code size: 326 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 488 / 1166
Version history: 5 change(s)
Referenced in: [show references]