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

23
LINES

< > BotCompany Repo | #1031792 // Start Firefox

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 1113K of libraries. Click here for Pure Java version (8362L/43K).

1  
!7
2  
3  
cmodule2 StartFirefox > DynSingleFunctionWithPrintLog  {
4  
  switchable S homePage = "https://gazelle.rocks";
5  
  Bool mainMethodWorks;
6  
  Bool fallbackWorks;
7  
  
8  
  JComponent makeButtons() {
9  
    ret hgridWithMargin(super.makeButtons(),
10  
      jbutton("Fallback", rEnterThread fallback));
11  
  }
12  
  
13  
  void doIt {
14  
    print("Trying Firefox");
15  
    firefox(homePage);
16  
    print("Did this work? Else try the fallback.");
17  
  }
18  
  
19  
  void fallback {
20  
    print("Falling back to default browser");
21  
    openPlatformBrowser(homePage);
22  
  }
23  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031792
Snippet name: Start Firefox
Eternal ID of this version: #1031792/4
Text MD5: fe676225f8fd57ff088c1e3afbb57001
Transpilation MD5: b08375c2f80141d400bbf9ac17d540c8
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-30 01:38:53
Source code size: 544 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 129 / 3071
Version history: 3 change(s)
Referenced in: [show references]