# Show website in Processing Java app

**URL:** <https://discourse.processing.org/t/show-website-in-processing-java-app/37846>\
**Category:** Coding Questions\
**Created:** [July 5, 2022, 11:50am UTC](https://discourse.processing.org/t/show-website-in-processing-java-app/37846 "2022-07-05T11:50:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucaP](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@LucaP](https://discourse.processing.org/u/LucaP)\
**Post date:** [July 5, 2022, 11:50am UTC](https://discourse.processing.org/t/show-website-in-processing-java-app/37846/1 "2022-07-05T11:50:52Z")

</div>

Hi,

I would like to show a website inside of my processing java app.  
Is this possible?

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [July 6, 2022, 10:28am UTC](https://discourse.processing.org/t/show-website-in-processing-java-app/37846/2 "2022-07-06T10:28:57Z")

</div>

Hi @LucaP,

> [@LucaP](#):
>
> Is this possible?

Imho, short answer is no!  
Long answer …  
There are ways to hook into JFrame and add ie. a JEditorPane which displays the website, but only up to HTML3.2 which is imho not what you want and far from use the embedded website interactively.  
There are also other libraries on the market based on Swing but it would be either licensed and/or needs a lot of background knowledge to other stuff and different for each OS.

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![LucaP](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@LucaP](https://discourse.processing.org/u/LucaP)\
**Post date:** [July 6, 2022, 5:18pm UTC](https://discourse.processing.org/t/show-website-in-processing-java-app/37846/3 "2022-07-06T17:18:19Z")

</div>

Thank you.

We are fine paying for a libary.  
Is there a possibility to use the javafx renderer and use the javafx webview?  
I’m not able to find how to access the scene processing runs in in order to overlay the javafx webview.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [July 7, 2022, 2:52am UTC](https://discourse.processing.org/t/show-website-in-processing-java-app/37846/4 "2022-07-07T02:52:55Z")

</div>

The following must be run in Processing **3.5.4**. Current editor only has JavaFX renderer and not all the requisite libraries apparently.

```auto
// Must be run in Processing 3.5.4

import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.layout.VBox;
import javafx.scene.web.WebView;

void setup() {  
  size(100, 100, FX2D); // Creates default window in addition to one below.
  Stage stage = new Stage();
  stage.setTitle("JavaFX WebView Example");
  WebView webView = new WebView();
  webView.getEngine().load("http://google.com");
  VBox vBox = new VBox(webView);
  Scene scene = new Scene(vBox, 960, 600);
  stage.setScene(scene);
  stage.show();
}

void draw() {
}

```

More info here: [https://discourse.processing.org/t/how-to-use-javafx-in-processing-4/35842](https://discourse.processing.org/t/how-to-use-javafx-in-processing-4/35842)

---

<div class="post-metadata">

**Author:** ![Mikey83](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mikey83/32/17956_2.png) [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Post date:** [July 10, 2022, 7:52am UTC](https://discourse.processing.org/t/show-website-in-processing-java-app/37846/5 "2022-07-10T07:52:17Z")

</div>

That wouldnt work with encryption would it?

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [July 10, 2022, 5:03pm UTC](https://discourse.processing.org/t/show-website-in-processing-java-app/37846/6 "2022-07-10T17:03:21Z")

</div>

No experience with encryption; others might know.
