Processing Forum




Click on Join Now to Sign Up
Thanks for your answer. I think, it would work if I have two embedded napplets. But it's one main file and one embedded napplet, so it doesn't work without creating two embedded napplets.. or not? (I'll try it again later, I think it should be possible..)
but another problem first:
This code I've got from a thread in the processing forum, it's a little modified but it's the same. It's the one with the mean and the good napplet.. With the x-key I can close the new napplet, when I'm in this napplet.. is there a possibility that if I am pressing a button in the main frame, that I can close the windowed napplet.. In the windowed napplet I can refer to the main napplet with Parentnapplet or something like this.. Is there a possibilty to say: "if this button is pressed exit() the windowed napplet"?
and another problem:
I can't place controlp5-buttons in a windowed napplet.. when I put them there, they are shown in the main napplet..
is there a possibility to change that or do I have to work with other libraries?
thank you..
I've created them in the napplet setup, but it didn't work... It's still shown in the main napplet... don't know why..
And your sketch doesn't work, I think.. "cannot convert from void to Napplet"
thank you for your answer, but it didn't help me...
I've created them in the napplet setup, but it didn't work... It's still shown in the main napplet... don't know why..
Okay, I'll download controlP5 and play with it a little and see what I can figure out.
And your sketch doesn't work, I think.. "cannot convert from void to Napplet"
Make sure you're using the most recent version of napplet from the download page, version 0.3.5. If this sketch still doesn't work, let me know.
thank you for your answer, but it didn't help me...
Well, I appreciate your patience. I'm still developing napplet, and at version 0.3, it's still got a lot of bugs and missing features. It's very helpful to me to have someone like you trying to use it, because you "find" a lot of these things for me. ;)With that said, I can understand you might be getting frustrated, and you might be able to get your project done faster if you did it without napplet. Are you still doing your "3-D geogebra" project? You could probably do that with just one or two PGraphics objects if you don't need any separate windows or anything.

.... seems not to work for me since version 0.3.3 ....
acsmith wrote here https://github.com/acsmith/napplet/wiki/ChangeLog :
size(300, 300, P2D)).
Werner
I think that the problem may be related to the OpenGL context (http://www.opengl.org/wiki/Creating_an_OpenGL_Context). Is there a way to overcome this issue?
NApplet: frameRate(float newRateTarget) disabled.
OpenGL error 1282 at top endDraw(): invalid operation
OpenGL error 1282 at bot endDraw(): invalid operation
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(Unknown Source)
at processing.core.PApplet$RegisteredMethods.handle(Unknown Source)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.media.opengl.GLException: Context not current on current thread
at com.sun.opengl.impl.GLContextImpl.release(GLContextImpl.java:162)
at processing.opengl.PGraphicsOpenGL.releaseContext(Unknown Source)
at processing.opengl.PGraphicsOpenGL.endDraw(Unknown Source)
at processing.core.PApplet.handleDraw(Unknown Source)
at napplet.NApplet.handleDraw(Unknown Source)
at napplet.NApplet.runFrame(Unknown Source)
at napplet.NAppletManager.draw(Unknown Source)
... 9 more