# Questions regarding complicated Processing stuff (Java Pen Tablet Access Library etc.)

**URL:** <https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817>\
**Category:** Libraries\
**Created:** [September 23, 2023, 2:53am UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817 "2023-09-23T02:53:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [September 23, 2023, 2:53am UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/1 "2023-09-23T02:53:47Z")

</div>

I have a few question regarding processing in generall! 🙂

### Is it possible to show a progress bar on task manager window?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/8/08cf9df2a6116dd4ae59bc3c5b3fa55b91e62041.png)

### Is it possible to make the app name be something different then “java openjdk 20”?

### Is it possible to use Jpen in FX2D?

Thank you for reading and mabye answering! 😃

---

<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:** [September 23, 2023, 3:29am UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/2 "2023-09-23T03:29:51Z")

</div>

_Journal of Parenteral and Enteral Nutrition_ (_JPEN_ ). No I don’t think you can get that in JavaFX.

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [September 23, 2023, 7:57am UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/3 "2023-09-23T07:57:50Z")

</div>

> [@svan](#):
>
> _ournal of Parenteral and Enteral Nutrition_ (_JPEN_ )

nice one LOL 😂

Might be [JPen](https://jpen.sourceforge.net/html-home/index.html) (Java Pen Tablet Access Library)?

Since they provide the jar and OS dlls it should be possible although the library has not been updated for a long time

---

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [September 23, 2023, 10:14am UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/4 "2023-09-23T10:14:05Z")

</div>

The problem is that opengl behaves weird, when it comes to various things, but thank you for the answer!

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 23, 2023, 10:37am UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/5 "2023-09-23T10:37:56Z")

</div>

> [@quark](#):
>
> Java Pen Tablet Access Library

Are you referring to Java Pen Tablet Access Library?

---

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [September 23, 2023, 12:03pm UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/6 "2023-09-23T12:03:09Z")

</div>

yes! exactly that, which is used for pen pressure!

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 23, 2023, 12:53pm UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/7 "2023-09-23T12:53:02Z")

</div>

> [@nuhuhwy](#):
>
> Is it possible to make the app name be something different then “java openjdk 20”?

consider

```auto

// -------------------------------------------------------------------------------------------------------

void setup() {
  // size(1460, 850, P3D);
  fullScreen(P3D);

  surface.setTitle("Mondrian");

```

---

<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:** [September 24, 2023, 12:20am UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/8 "2023-09-24T00:20:45Z")

</div>

Are you aware that the Tablet library which you can install contains a jpen-2 jar file?

 ![tablet](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/9/4/940167cbaf4ae7b87819779d29c4f7f8b60575a9.png)

 ![tablet_2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/7/87a4a5fb95cb37f2e7d206ff6b5c8cd40194e836.png)

**Output:**

 ![example](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/1/e/1e0c9bf4a4cd64fe441ec2c92757ff8b0dc4673f.png)

Note: Does not work with FX2D renderer

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 24, 2023, 7:52pm UTC](https://discourse.processing.org/t/questions-regarding-complicated-processing-stuff-java-pen-tablet-access-library-etc/42817/9 "2023-09-24T19:52:10Z")

</div>

> [@nuhuhwy](#):
>
> Is it possible to show a progress bar on task manager window?

that’s what chatGPT4 gave me

> You can create a simple progress bar in Processing using the `rect()` function to draw a rectangle that represents the progress. Here’s an example of how to create a basic horizontal progress bar:…  
> …  
> In this example, we start with a progress bar of width zero and gradually increase its width in the `draw()` function. You can adjust the `progressBarWidth` increment and the `frameRate` to control the speed of progress.
> 
> To use this code, copy it into a Processing sketch, and then run the sketch. You should see a basic horizontal progress bar that fills from left to right. You can customize the appearance and behavior of the progress bar to fit your specific needs.

```auto

//

int progressBarWidth = 0; // Initial progress bar width
int maxProgressBarWidth = 400; // Maximum width of the progress bar

void setup() {
  size(700, 100);
  frameRate(30); // Adjust the frame rate as needed
}

void draw() {
  background(220); // Set the background color

  // Update the progress bar width
  progressBarWidth += 2; // You can change this value to control the progress

  // Ensure the progress bar doesn't exceed its maximum width
  if (progressBarWidth > maxProgressBarWidth) {
    progressBarWidth = maxProgressBarWidth;
  }

  // Draw the progress bar outline
  stroke(0);
  noFill();
  rect(50, 40, maxProgressBarWidth, 20);

  // Draw the filled part of the progress bar
  fill(0, 128, 0); // Green color for the progress
  noStroke();
  rect(50, 40, progressBarWidth, 20);
}

```
