1 | static JLabel jAutoSnippetTitle(final JTextComponent snippetIDChooser) { |
2 | final JLabel label = jlabel(); |
3 | awtCalcEveryAndNow(label, 200, new Runnable { |
4 | S last; |
5 | |
6 | public void run { |
7 | S id = getTextTrim(snippetIDChooser); |
8 | if (neq(last, id)) { |
9 | last = id; |
10 | setText(label, isSnippetID(id) ? getSnippetTitle(id) : ""); |
11 | } |
12 | } |
13 | }); |
14 | ret label; |
15 | } |
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: | #1015732 |
Snippet name: | jAutoSnippetTitle |
Eternal ID of this version: | #1015732/2 |
Text MD5: | 526537cf9f9d4f977c6e9f84fbd9aa0d |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-26 13:50:35 |
Source code size: | 399 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 278 / 328 |
Version history: | 1 change(s) |
Referenced in: | [show references] |