1 | svoid setText_noWait(JTextComponent c, O text) { |
2 | setText_noWait((O) c, text); |
3 | } |
4 | |
5 | svoid setText_noWait(JLabel c, O text) { |
6 | setText_noWait((O) c, text); |
7 | } |
8 | |
9 | svoid setText_noWait(JButton c, O text) { |
10 | setText_noWait((O) c, text); |
11 | } |
12 | |
13 | svoid setText_noWait(fO c, O text) { |
14 | final S s = str(text); |
15 | awtIfNecessary { call(c, "setText", s); } |
16 | } |
Began life as a copy of #1003310
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: | #1006756 |
Snippet name: | setText_noWait - more flexible shorthand for JTextComponent/JLabel/JButton.setText() - uses AWT thread |
Eternal ID of this version: | #1006756/1 |
Text MD5: | 3aa35c0824a4514f954bcf87527a8bed |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-03 18:42:24 |
Source code size: | 356 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 529 / 559 |
Referenced in: | [show references] |