# JavaFX and Processing 3 P3D

**URL:** <https://discourse.processing.org/t/javafx-and-processing-3-p3d/15744>\
**Category:** Development\
**Created:** [November 23, 2019, 2:58pm UTC](https://discourse.processing.org/t/javafx-and-processing-3-p3d/15744 "2019-11-23T14:58:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [December 1, 2019, 6:38pm UTC](https://discourse.processing.org/t/javafx-and-processing-3-p3d/15744/4 "2019-12-01T18:38:34Z")

</div>

Create a class for each app.

Launch one from the other (i.e. the 3D sketch from the JavaFX main app).

```
P3DSketch sketch2

public void setup() {
	sketch2 = new P3DSketch();
	PApplet.runSketch(new String[] {}, sketch2);
}

```

Then you can set/refer to variables of the class.

```auto
sketch2.arrayData = .....

```

---

_[View the full topic](https://discourse.processing.org/t/javafx-and-processing-3-p3d/15744)._
