Libraryless. Click here for Pure Java version (5179L/29K).
svoid setSectionTitle(JComponent c, S title) swing { reMutable c; while (c != null) { var b = c.getBorder(); if (b != null) { if (b cast javax.swing.border.TitledBorder) { b.setTitle(title); revalidate(c); ret; } } if (c.getParent() instanceof JComponent) c = (JComponent) c.getParent(); else break; } }
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: | 779 / 885 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |