@@ -270,7 +270,9 @@ System.exit(0) does not stop all processes
270270list cell renderers must be JComponents
271271myClass.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
275277MAJOR ISSUES--for Bob and Udo within SwingJS
276278============================================
@@ -488,14 +490,28 @@ qualified field and method names
488490
489491In order to minimize the chance of added SwingJS field and method names colliding with
490492ones 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
492494would 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
495497missing 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
500516MAJOR ISSUES--for Bob and Udo within SwingJS
501517============================================
0 commit comments