Libraryless. Click here for Pure Java version (5179L/29K).
1 | svoid setSectionTitle(JComponent c, S title) swing { |
2 | reMutable c; |
3 | while (c != null) { |
4 | var b = c.getBorder(); |
5 | if (b != null) { |
6 | if (b cast javax.swing.border.TitledBorder) { |
7 | b.setTitle(title); |
8 | revalidate(c); |
9 | ret; |
10 | } |
11 | } |
12 | if (c.getParent() instanceof JComponent) |
13 | c = (JComponent) c.getParent(); |
14 | else |
15 | break; |
16 | } |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006236 |
Snippet name: | setSectionTitle |
Eternal ID of this version: | #1006236/4 |
Text MD5: | 3e0f6899a4eb8e3d0700654c78dc1ae1 |
Transpilation MD5: | d0f979f6c2f030c8577d5dd28acd3114 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-29 01:46:19 |
Source code size: | 393 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 540 / 591 |
Version history: | 3 change(s) |
Referenced in: | [show references] |