1 | static <A extends Component> A internalFrameTitle(A c, fS title) { |
2 | final JInternalFrame f = getInternalFrame(c); |
3 | if (f != null) swing { |
4 | f.setTitle(unnull(title)); |
5 | toolTip(getInternalFrameTitlePaneComponent(f), title); |
6 | } |
7 | ret c; |
8 | } |
9 | |
10 | static <A extends Component> A internalFrameTitle(S title, A c) { |
11 | ret internalFrameTitle(c, title); |
12 | } |
13 | |
14 | static S internalFrameTitle(Component c) { |
15 | final JInternalFrame f = getInternalFrame(c); |
16 | ret f == null ? null : swing(func -> S { f.getTitle() }); |
17 | } |
Began life as a copy of #1010147
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015822 |
Snippet name: | internalFrameTitle |
Eternal ID of this version: | #1015822/5 |
Text MD5: | bdbbd9509d9eacc6adf45ec77099a9d0 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-10 18:55:06 |
Source code size: | 521 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 385 / 447 |
Version history: | 4 change(s) |
Referenced in: | [show references] |