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

9
LINES

< > BotCompany Repo | #1010034 // Snippet Server Switcher [use only if you know what you're doing]

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

Download Jar. Libraryless. Click here for Pure Java version (2165L/15K).

1  
!7
2  
3  
p {
4  
  print("Current server: " + tb_mainServer() + "(" +
5  
    (tb_mainServer_isDefault() ? "default" : "NOT default") + ")");
6  
  showControls(jcenteredline(
7  
    jbutton("Default", f tb_mainServer_default),
8  
    jbutton("Local", f tb_mainServer_local)));
9  
}

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: #1010034
Snippet name: Snippet Server Switcher [use only if you know what you're doing]
Eternal ID of this version: #1010034/3
Text MD5: bb2776c9587bb462b619a2aaa3cb6e07
Transpilation MD5: 9f378a6a86a4d2acae5cf2920b592e4f
Author: stefan
Category: javax / networking
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-29 18:07:00
Source code size: 264 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 512 / 1209
Version history: 2 change(s)
Referenced in: [show references]