Libraryless. Click here for Pure Java version (6707L/38K).
1 | set flag debugComponentMeta. |
2 | |
3 | svoid testMetaOfJComponent() { |
4 | JLabel l = jlabel("bla"); |
5 | metaPut(l, I := "am God"); |
6 | assertEqualsVerbose(metaGet I(l), "am God"); |
7 | metaPut(l, You := "are me"); |
8 | assertEqualsVerbose(metaGet I(l), "am God"); |
9 | assertEqualsVerbose(metaGet You(l), "are me"); |
10 | assertEqualsVerbose(metaGet Unknown(l), null); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033771 |
Snippet name: | testMetaOfJComponent (OK) |
Eternal ID of this version: | #1033771/3 |
Text MD5: | c2f4de1bd94080253752be9ddc5932b4 |
Transpilation MD5: | 3ff1f3ac8b6b8f87747d27b45bada31f |
Author: | stefan |
Category: | javax / reasoning |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-02 19:02:03 |
Source code size: | 352 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 143 / 216 |
Version history: | 2 change(s) |
Referenced in: | [show references] |