# Scaling on High-DPI Monitor is Incorrect

**URL:** <https://discourse.processing.org/t/scaling-on-high-dpi-monitor-is-incorrect/6407>\
**Category:** Coding Questions\
**Created:** [December 7, 2018, 10:42pm UTC](https://discourse.processing.org/t/scaling-on-high-dpi-monitor-is-incorrect/6407 "2018-12-07T22:42:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RecursiveCursive](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@RecursiveCursive](https://discourse.processing.org/u/RecursiveCursive)\
**Post date:** [December 7, 2018, 10:42pm UTC](https://discourse.processing.org/t/scaling-on-high-dpi-monitor-is-incorrect/6407/1 "2018-12-07T22:42:38Z")

</div>

I wrote a sketch using Processing 2 but rather than using the Processing IDE, I used Eclipse. I now want to export the sketch as a jar file, but I am having an annoying issue when trying to run the resulting jar on a display with a High-DPI monitor. For some reason, running the sketch outside of Eclipse results in the window being scaled up, but the size of the sketch itself being retained (see screenshot).

 ![Untitled](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a1453b9ff4e6a17aa8e3095aa44c779e3b4a5db7.png)

In the screenshot depicted, the blue square makes up the content of the actual sketch while the black portion is unused space that is not there. Additionally, the mouse coordinates are not correct as a result. It is worth noting that this undesired scaling up does not occur when I run the sketch in Eclipse, nor does it happen if I launch the jar via the command line by making use of “java -jar .jar”. How can I fix this?

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 12, 2018, 8:58pm UTC](https://discourse.processing.org/t/scaling-on-high-dpi-monitor-is-incorrect/6407/2 "2018-12-12T20:58:23Z")

</div>

I’m not sure, but this sounds familiar – this might be related to:

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/26317/pixeldensity-not-working-with-exported-application)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.
