Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

20
LINES

< > BotCompany Repo | #1009084 // Swing: Send To Bot [dev.]

JavaX source code (desktop) [tags: archive use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (6035L/41K).

1  
!7
2  
3  
p-substance {
4  
  final JComboBox cbBot = jBotSelector();
5  
  final JTextField tfCmd = jtextfield();
6  
  final JTextField tfOutput = jdisabledtextfield();
7  
  
8  
  setFrameWidth(800, showFormTitled("Send Command To Bot",
9  
    "Bot:", cbBot,
10  
    "Command:", tfCmd,
11  
    "Result:", tfOutput, r-thread {
12  
      loading {
13  
        S cmd = getText(tfCmd);
14  
        setText(tfOutput, "Sending " + singleQuote(cmd) + "...");
15  
        S address = botSelector_getAddress(cbBot);
16  
        print("Sending to: " + address);
17  
        setText(tfOutput, send(address, cmd));
18  
      }
19  
    }));
20  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): cfunsshuasjs, mqqgnosmbjvj, onxytkatvevr, tvejysmllsmz

No comments. add comment

Snippet ID: #1009084
Snippet name: Swing: Send To Bot [dev.]
Eternal ID of this version: #1009084/7
Text MD5: 1db3946d3efbc13f2b4bb9c70ab7cb11
Transpilation MD5: 00238621f4a9289ebc18f2a39f32d1cf
Author: stefan
Category: javax / desktop / bots
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): Yes
Created/modified: 2017-07-02 17:17:52
Source code size: 583 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 514 / 1136
Version history: 6 change(s)
Referenced in: [show references]