Reference to `frame` in `PApplet` should be removed?
See original GitHub issueGetting a NoSuchFieldError
on startup with Python Mode with 4.0 alpha 2 because frame
has been removed, and it seems like there’s some sort of workaround that sets it null
on startup:
https://github.com/jdf/processing.py/blob/master/runtime/src/jycessing/PAppletJythonDriver.java#L460
If this is still necessary, perhaps reflection to avoid calling this with newer PApplet
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
PApplet - GitHub Pages
As of Processing 3.0, we have removed Applet as the base class for PApplet. This means that we can remove lots of legacy...
Read more >Set default close operation on PApplet (Processing)
I´ve added an window listener to get the window closing action: //frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); frame.
Read more >embedding PApplet in Java JFrame - Processing forum
"As of Processing 3.0, we have removed Applet as the base class for PApplet. This means that we can remove lots of legacy...
Read more >core/src/processing/core/PApplet.java - Google Git
this will be cleared by draw() if it is not overridden. looping = true; ... reference to the parent PApplet is included, which...
Read more >PROCESSING & Java
Encapsulate the Processing sketch as an object that inherits from PApplet;; Construct that object and add it to the GUI controller frame. 25....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@villares Ok, just pushed a fix for that one to the Processing 4 source (that code was making the assumption that all Modes would have an
ErrorTable
, which is not correct). For other issues, you’ll probably want to open something separate, since this issue is just aboutframe
inPApplet
.Oh, and the “Save As” crash may be resolved by the solution described here: https://github.com/processing/processing4/issues/233#issuecomment-892615250
(Now I’m the one discussing multiple issues in the same report…)