Skip to content

Commit 8ab861e

Browse files
hansonrhansonr
authored andcommitted
new SwingJS-site.zip
1 parent 985854a commit 8ab861e

File tree

8 files changed

+771
-755
lines changed

8 files changed

+771
-755
lines changed
1.64 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190610144738
1+
20190613090609
1.64 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190610144738
1+
20190613090609
1.64 KB
Binary file not shown.

sources/net.sf.j2s.java.core/doc/Differences.txt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ System.exit(0) does not stop all processes
270270
list cell renderers must be JComponents
271271
myClass.getField not implemented
272272
"window" and other reserved JavaScript names
273-
273+
qualified field and method names
274+
missing Math methods
275+
component.getGraphics(), graphics.dispose()
274276

275277
MAJOR ISSUES--for Bob and Udo within SwingJS
276278
============================================
@@ -488,14 +490,28 @@ qualified field and method names
488490

489491
In order to minimize the chance of added SwingJS field and method names colliding with
490492
ones developers might use in subclassing Java classes, we have added U+79D8 (Mandarin "secrect")
491-
to the characaters already disrecommended by Java documentation ("$" and "_"). The only problem
493+
to the characters already disrecommended by Java documentation ("$" and "_"). The only problem
492494
would be if you use that character followed by certain English words in certain classes. For example
493495
\u79D8canvas for JComponents (in java.awt.JSComponent) and \u79D8byte (in java.io.File).
494496

495497
missing Math methods
496498
--------------------
497499

498-
A few java.lang.Math
500+
A few of the more obscure java.lang.Math methods are missing. This is a
501+
result of continued Java development. It is easy enough to add these
502+
methods if you have the source. They go into j2sClazz.js, which is
503+
combined with other initial libraries into swingjs2.js.
504+
505+
506+
component.getGraphics(), graphics.dispose()
507+
-------------------------------------------
508+
509+
Use of component.getGraphics() is discouraged in Java and in SwingJS.
510+
Specifically in SwingJS, any call to component.getGraphics() or
511+
component.createGraphics() must be matched with graphics.dispose(),
512+
particularly when it is called outside the context of a paint(Graphics)
513+
call from the system.
514+
499515

500516
MAJOR ISSUES--for Bob and Udo within SwingJS
501517
============================================

0 commit comments

Comments
 (0)