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

69
LINES

< > BotCompany Repo | #1033419 // Gazelle V, New UI Standalone [Darcula theme, broken because JDK 15]

JavaX source code (desktop) - run with: x30.jar

Download Jar.

1  
!7
2  
3  
lib 1400519 lib 1400520 // darcula
4  
5  
set flag PingV3.
6  
7  
static IF0<PingSource> ping_v3_pingSourceMaker() { ret () -> new PingSource; }
8  
9  
sclass Stem {
10  
  Window window;
11  
  
12  
  Rect getFrameRect() {
13  
    ret toRect(getBounds(window));
14  
  }
15  
}
16  
17  
static Stem stem;
18  
static GazelleV gazelle;
19  
20  
p {
21  
  __javax = x30.class;
22  
  loadableUtils.utils.__setJavaX(x30.class);
23  
  vm_generalMap_put(stefansOS := mc());
24  
  
25  
  //UIManager.installLookAndFeel(new com.bulenkov.darcula.DarculaLookAndFeelInfo());
26  
  UIManager.getFont("Label.font");
27  
  UIManager.setLookAndFeel(new com.bulenkov.darcula.DarculaLaf());
28  
  
29  
  GazelleV gazelle;
30  
  if (contains(args, "profile"))
31  
    gazelle = profileToConsole(() -> actualMain(args));
32  
  else
33  
    gazelle = actualMain(args);
34  
    
35  
  if (contains(args, "brexit")) System.exit(0);
36  
  
37  
  temp gazelle.enter();
38  
  gazelle.start();
39  
}
40  
41  
static GazelleV actualMain(S... args) {
42  
  System.out.println(hmsWithColonsAndMS() + ": Init");
43  
  //x30.coreInit();
44  
  x30.__javax = x30.class; // for hotwire
45  
  x30_pkg.x30_util.__setJavaX(x30.class);
46  
  x30.cleanKillMsg = "";
47  
  callOnLoadMethods(mc());
48  
49  
  printWithMS("new GazelleV");
50  
  gazelle = new GazelleV;
51  
  stem = new Stem;
52  
  gazelle._host = stem;
53  
54  
  temp gazelle.enter();
55  
  printWithMS("Visualize");
56  
  var vis = swing(() -> gazelle.visualize());
57  
  printWithMS("Show frame");
58  
  stem.window = showMainFrame("Gazella", vis);
59  
  printWithMS("Dudadoneski");
60  
  ret gazelle;
61  
}
62  
63  
sO dm_getStem(O moduleOrID) {
64  
  ret stem;
65  
}
66  
67  
sO resolveModule(O moduleOrID) { ret moduleOrID == stem ? gazelle : moduleOrID; }
68  
69  
!include early #1033309 // GazelleV

Author comment

Began life as a copy of #1033411

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): bhatertpkbcr, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033419
Snippet name: Gazelle V, New UI Standalone [Darcula theme, broken because JDK 15]
Eternal ID of this version: #1033419/1
Text MD5: 87f3c02a481c38428f55fee97e73f76b
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:25:02
Source code size: 1645 bytes / 69 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 491
Referenced in: [show references]