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

11
LINES

< > BotCompany Repo | #1034616 // test_componentMetaSrc

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10804L/63K).

svoid test_componentMetaSrc() {
  class B {
    JLabel lbl;
    cachedVisual jline(lbl = jlabel());
  }
  
  new B b;
  var vis = b.visualize();
  assertSameVerbose(b, componentMetaSrc(b.lbl));
  assertSameVerbose(b, componentMetaSrc(vis));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034616
Snippet name: test_componentMetaSrc
Eternal ID of this version: #1034616/2
Text MD5: f874c07bb944dc1088728da9cb8b3026
Transpilation MD5: 479d90832d9c4dad1812ad0a3a34e6b8
Author: stefan
Category: javax / gui / meta
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-24 18:06:34
Source code size: 252 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 126 / 194
Version history: 1 change(s)
Referenced in: [show references]