Skip to content

Instantly share code, notes, and snippets.

@oguzgelal
Last active November 14, 2015 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oguzgelal/a3df41d5cc11d3798fa1 to your computer and use it in GitHub Desktop.
Save oguzgelal/a3df41d5cc11d3798fa1 to your computer and use it in GitHub Desktop.
Processing code when converted into Java
public class ExampleFrame extends Frame {
public ExampleFrame() {
super("Embedded PApplet");
setLayout(new BorderLayout());
PApplet embed = new Embedded();
add(embed, BorderLayout.CENTER);
embed.init();
}
}
public class Embedded extends PApplet {
public void setup() {
// setup codes goes here
}
public void draw() {
// draw codes goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment