sclass PApplet2 extends PApplet { ifdef Processing2 //S title; endifdef void setTitle(S title) { ifndef Processing2 getSurface().setTitle(title); endifndef ifdef Processing2 setFrameTitle(frame, title); //this.title = title; endifdef } void setup() { ifdef Processing2 settings(); endifdef } }