Download Jar. Uses 1663K of libraries. Click here for Pure Java version (25371L/141K).
1 | !7 |
2 | |
3 | lib 1400521 // FlatLAF |
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 | com.formdev.flatlaf.FlatLightLaf.setup(); |
26 | JFrame.setDefaultLookAndFeelDecorated(true); |
27 | |
28 | GazelleV gazelle; |
29 | if (contains(args, "profile")) |
30 | gazelle = profileToConsole(() -> actualMain(args)); |
31 | else |
32 | gazelle = actualMain(args); |
33 | |
34 | if (contains(args, "brexit")) System.exit(0); |
35 | |
36 | temp gazelle.enter(); |
37 | gazelle.start(); |
38 | } |
39 | |
40 | static GazelleV actualMain(S... args) {
|
41 | System.out.println(hmsWithColonsAndMS() + ": Init"); |
42 | //x30.coreInit(); |
43 | x30.__javax = x30.class; // for hotwire |
44 | x30_pkg.x30_util.__setJavaX(x30.class); |
45 | x30.cleanKillMsg = ""; |
46 | callOnLoadMethods(mc()); |
47 | |
48 | printWithMS("new GazelleV");
|
49 | gazelle = new GazelleV; |
50 | stem = new Stem; |
51 | gazelle._host = stem; |
52 | |
53 | temp gazelle.enter(); |
54 | printWithMS("Visualize");
|
55 | var vis = swing(() -> gazelle.visualize()); |
56 | printWithMS("Show frame");
|
57 | stem.window = showMainFrame("Gazella", vis);
|
58 | printWithMS("Dudadoneski");
|
59 | ret gazelle; |
60 | } |
61 | |
62 | sO dm_getStem(O moduleOrID) {
|
63 | ret stem; |
64 | } |
65 | |
66 | sO resolveModule(O moduleOrID) { ret moduleOrID == stem ? gazelle : moduleOrID; }
|
67 | |
68 | !include early #1033309 // GazelleV |
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: | 477 / 1489 |
| Referenced in: | [show references] |