It would be helpful if you tell what you want this method to do.
When you use this in a main program, outside of your own class, you refer to PApplet, which does not have such a method (what do you expect it to return?). If you're talking about some specific class, then, please, tell which one. If it is in your custom created class, you need to provide your own method.
@Chrisir, this thread is more than 1 year ago and it's about the "mysterious" getX(), which was available in older Processing versions; and got nothing to do w/ P3D or jogamp! :-@
Answers
It would be helpful if you tell what you want this method to do.
When you use
this
in a main program, outside of your own class, you refer to PApplet, which does not have such a method (what do you expect it to return?). If you're talking about some specific class, then, please, tell which one. If it is in your custom created class, you need to provide your own method.This is not my class. this.getX() was in processing 2.
Method getX() belongs to class Component:
http://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getX--
Given that in P3 the PApplet class stopped extending class Applet, all of those such members don't belong to the former anymore: [-X
http://docs.Oracle.com/javase/8/docs/api/java/applet/Applet.html
What do I need to do to take advantage of this.getX?
@gotoloop: thank you but
I receive
ClassCastException rcom.jogamp.newt.opengl.GLWindow cannot cast to processing.awt.PSurfaceAWT.SmoothCanvas
for this part
maybe because I am on P3D....?
Maybe this: https://forum.processing.org/two/search?Search=jogamp
Kf
yeah
I always get function getFrame doesn't exist
any ideas...?
@gotoloop could you help please?
I am on P3D and I always get function getFrame doesn't exist
thanks.....
@Chrisir, this thread is more than 1 year ago and it's about the "mysterious" getX(), which was available in older Processing versions; and got nothing to do w/ P3D or jogamp! :-@
@Chrisir
What are you trying to do? Do you want to set the position of your sketch window?
Kf
shall I open a new thread?
I came here with a suggestion of yours (and one of kfrajer) ;-)
Thanks!