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

68
LINES

< > BotCompany Repo | #1033420 // Gazelle V, New UI Standalone [FlatPak]

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

Download Jar. Uses 1663K of libraries. Click here for Pure Java version (25371L/141K).

!7

lib 1400521 // FlatLAF

set flag PingV3.

static IF0<PingSource> ping_v3_pingSourceMaker() { ret () -> new PingSource; }

sclass Stem {
  Window window;
  
  Rect getFrameRect() {
    ret toRect(getBounds(window));
  }
}

static Stem stem;
static GazelleV gazelle;

p {
  __javax = x30.class;
  loadableUtils.utils.__setJavaX(x30.class);
  vm_generalMap_put(stefansOS := mc());
  
  com.formdev.flatlaf.FlatLightLaf.setup();
  JFrame.setDefaultLookAndFeelDecorated(true); 
  
  GazelleV gazelle;
  if (contains(args, "profile"))
    gazelle = profileToConsole(() -> actualMain(args));
  else
    gazelle = actualMain(args);
    
  if (contains(args, "brexit")) System.exit(0);
  
  temp gazelle.enter();
  gazelle.start();
}

static GazelleV actualMain(S... args) {
  System.out.println(hmsWithColonsAndMS() + ": Init");
  //x30.coreInit();
  x30.__javax = x30.class; // for hotwire
  x30_pkg.x30_util.__setJavaX(x30.class);
  x30.cleanKillMsg = "";
  callOnLoadMethods(mc());

  printWithMS("new GazelleV");
  gazelle = new GazelleV;
  stem = new Stem;
  gazelle._host = stem;

  temp gazelle.enter();
  printWithMS("Visualize");
  var vis = swing(() -> gazelle.visualize());
  printWithMS("Show frame");
  stem.window = showMainFrame("Gazella", vis);
  printWithMS("Dudadoneski");
  ret gazelle;
}

sO dm_getStem(O moduleOrID) {
  ret stem;
}

sO resolveModule(O moduleOrID) { ret moduleOrID == stem ? gazelle : moduleOrID; }

!include early #1033309 // GazelleV

Author comment

Began life as a copy of #1033411

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, iveijnkanddl, mqqgnosmbjvj, wpzdwgqboxjy

No comments. add comment

Snippet ID: #1033420
Snippet name: Gazelle V, New UI Standalone [FlatPak]
Eternal ID of this version: #1033420/1
Text MD5: b06cd4f8e130dd2b3859e285047f166a
Transpilation MD5: 5d3d819c5906f8e2fbaa205e7fd5ec36
Author: stefan
Category: javax / screen recognition
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-27 09:41:49
Source code size: 1537 bytes / 68 lines
Pitched / IR pitched: No / No
Views / Downloads: 86 / 569
Referenced in: [show references]