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

7
LINES

< > BotCompany Repo | #1008418 // serveHttpOpenBrowser

JavaX fragment (include)

1  
// returns URL
2  
static S serveHttpOpenBrowser(int... preferredPorts) {
3  
  int port = serveHttp_preferredPorts(preferredPorts); // find a free port
4  
  S url = print("http://localhost:" + port);
5  
  openPlatformBrowser(url);
6  
  ret url;
7  
}

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: #1008418
Snippet name: serveHttpOpenBrowser
Eternal ID of this version: #1008418/2
Text MD5: d0a7a10bc7391f6b0d25a85e815596ee
Author: stefan
Category: javax / desktop / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-15 14:33:36
Source code size: 236 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 560 / 580
Version history: 1 change(s)
Referenced in: [show references]