1 | static void consoleAddSendButton() { |
2 | consoleAddSendButton("Send"); |
3 | } |
4 | |
5 | static void consoleAddSendButton(fS buttonText) { |
6 | if (headless()) ret; |
7 | awtReplaceComponent(consoleInputFieldOrComboBox(), func(Component c) { |
8 | centerAndEast(c, withLeftMargin(jbutton(buttonText, f consoleSend))) |
9 | }); |
10 | focusConsole(); |
11 | consoleSelectAll(); |
12 | } |
Began life as a copy of #1007746
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: | #1010276 |
Snippet name: | consoleAddSendButton |
Eternal ID of this version: | #1010276/5 |
Text MD5: | c47ecb55d5d6dd9585f8407defa703fc |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-03 01:20:30 |
Source code size: | 349 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 515 / 550 |
Version history: | 4 change(s) |
Referenced in: | [show references] |