Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3be8d3b

Browse files
committed
// BH 2025.04.18 enables Info.readyFunction for headless apps
1 parent8eb9676 commit3be8d3b

File tree

7 files changed

+14
-4
lines changed

7 files changed

+14
-4
lines changed
740 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20250414130828
1+
20250419133113
740 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20250414130828
1+
20250419133113
75 Bytes
Binary file not shown.

‎sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// j2sApplet.js BH = Bob Hanson hansonr@stolaf.edu
22

3+
// BH 2025.04.18 enables Info.readyFunction for headless apps
34
// BH 2025.04.17 adds option for explicit directory for core files different from j2sPath/core
45
// BH 2024.11.09 makes equivalent J2S._debugCore and J2S._nozcore, as well as J2S._debugCode and J2S._nocore
56
// BH 2024.10.03 adds two-finger tap as "click"; reinstates touch gestures lost when we went to pointerup 2023.11.01
@@ -2903,7 +2904,11 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
29032904
applet._codePath=codePath;
29042905
Clazz.loadClass("java.lang.Thread").currentThread$().group.html5Applet=applet;
29052906
cl.main$SA(applet.__Info.args||[]);
2906-
System.exit$(0);
2907+
if(applet.__Info.readyFunction){
2908+
applet.__Info.readyFunction(applet);
2909+
}else{
2910+
System.exit$(0);
2911+
}
29072912
}else{
29082913

29092914
varviewerOptions=Clazz.new_("java.util.Hashtable");

‎sources/net.sf.j2s.java.core/srcjs/swingjs2.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10686,6 +10686,7 @@ return jQuery;
1068610686
})(jQuery,document,"click mousemove mouseup touchmove touchend", "outjsmol");
1068710687
// j2sApplet.js BH = Bob Hanson hansonr@stolaf.edu
1068810688

10689+
// BH 2025.04.18 enables Info.readyFunction for headless apps
1068910690
// BH 2025.04.17 adds option for explicit directory for core files different from j2sPath/core
1069010691
// BH 2024.11.09 makes equivalent J2S._debugCore and J2S._nozcore, as well as J2S._debugCode and J2S._nocore
1069110692
// BH 2024.10.03 adds two-finger tap as "click"; reinstates touch gestures lost when we went to pointerup 2023.11.01
@@ -13589,7 +13590,11 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1358913590
applet._codePath = codePath;
1359013591
Clazz.loadClass("java.lang.Thread").currentThread$().group.html5Applet = applet;
1359113592
cl.main$SA(applet.__Info.args || []);
13592-
System.exit$(0);
13593+
if (applet.__Info.readyFunction) {
13594+
applet.__Info.readyFunction(applet);
13595+
} else {
13596+
System.exit$(0);
13597+
}
1359313598
} else {
1359413599

1359513600
var viewerOptions = Clazz.new_("java.util.Hashtable");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp