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).

1  
svoid test_componentMetaSrc() {
2  
  class B {
3  
    JLabel lbl;
4  
    cachedVisual jline(lbl = jlabel());
5  
  }
6  
  
7  
  new B b;
8  
  var vis = b.visualize();
9  
  assertSameVerbose(b, componentMetaSrc(b.lbl));
10  
  assertSameVerbose(b, componentMetaSrc(vis));
11  
}

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: 127 / 195
Version history: 1 change(s)
Referenced in: [show references]