# How to set Java (Designer) to use 100% screen scaling without changing Windows setting?

**URL:** <https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024>\
**Category:** Ignition\
**Created:** [April 29, 2022, 12:55am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024 "2022-04-29T00:55:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 29, 2022, 12:55am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/1 "2022-04-29T00:55:06Z")

</div>

I think I saw this mentioned on the forums somewhere about a java argument you can set for this, but can’t find it…

Windows screen scaling of anything but 100% causes issues with object displays in Java apps, the Designer included, and while I always have this at 100% (even on my tiny 27" 4K monitor :D), some colleagues aren’t so adventurous and would like to set Windows to 125%.

From memory it might have been @Kevin.Herron that mentioned the Java arg?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2022, 1:02am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/2 "2022-04-29T01:02:39Z")

</div>

Should be:

```auto
-Dsun.java2d.uiScale=1.0

```

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 29, 2022, 1:03am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/3 "2022-04-29T01:03:16Z")

</div>

Thanks Kevin!

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 29, 2022, 1:05am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/4 "2022-04-29T01:05:52Z")

</div>

Just to confirm, this is how you add these right? (and how would you add multiple?)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cfe23ea6f49e0473706a0984cfa3e07b89451081.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2022, 1:07am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/5 "2022-04-29T01:07:10Z")

</div>

I think so… is that field not multi line? I’m not on a real computer right now so I can’t check.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 29, 2022, 10:36am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/6 "2022-04-29T10:36:42Z")

</div>

Hmm, this didn’t seem to work on Linux. Haven’t tried on Windows

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2022, 12:24pm UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/7 "2022-04-29T12:24:25Z")

</div>

Didn’t work in Linux how? Linux will only scale 100% or 200%, depending on your screen resolution and the value of the `GDK_SCALE` environment variable or something… based on the hardware you described I’d expect you’re already seeing 100% in Linux.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 29, 2022, 12:27pm UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/8 "2022-04-29T12:27:18Z")

</div>

@zander.minchin

---

<div class="post-metadata">

**Author:** ![SBL\_MC](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbl_mc/32/56813_2.png) [@SBL\_MC](https://forum.inductiveautomation.com/u/SBL_MC)\
**Post date:** [April 29, 2022, 1:21pm UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/9 "2022-04-29T13:21:44Z")

</div>

I think using this to fix the script editor might have caused another issue?

 ![scaling](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/a/5a10a2ee687f503f28b301bf5d46bb0a919d83ff.png)

Seems to get worse the higher the windows scaling are. 125 % seemed ok, but 150 % is as my photo shows.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 29, 2022, 3:37pm UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/10 "2022-04-29T15:37:33Z")

</div>

We don’t test on nor expect fractional scaling to work - if anything, we expect it to be broken.  
100 or 200% only.

---

<div class="post-metadata">

**Author:** ![SBL\_MC](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbl_mc/32/56813_2.png) [@SBL\_MC](https://forum.inductiveautomation.com/u/SBL_MC)\
**Post date:** [April 29, 2022, 7:28pm UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/11 "2022-04-29T19:28:14Z")

</div>

100 (to small) and 200 (to large) percent make the script editor work without this uiscale. What is the purpose of it then?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 29, 2022, 10:05pm UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/12 "2022-04-29T22:05:05Z")

</div>

Perhaps we’re talking past each other.

As of Java 9, Java Swing _attempts_ to scale to whatever the UI scaling factor is set to. Windows and most Linux distros let you choose ‘fractional’ scales, i.e. 125%. Swing will _attempt_ to support this, but really does not do a good job - fonts are scaled oddly, images are resized poorly, etc.

`-Dsun.java2d.uiScale` is an “escape hatch” - it is a _more local_ setting to override the scale factor _for a particular Swing application_, rather than having to change your scaling factor for the entire OS.  
The only value you _should_ supply to `uiScale` is 1.0 or 2.0, because Swing doesn’t work well at fractional scaling values. The only reason you _need_ to set `uiScale` is if you have a monitor that you want to leave at 125% or other fractional scale factor _at the OS level_ but still work with Ignition without issues.

---

<div class="post-metadata">

**Author:** ![SBL\_MC](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbl_mc/32/56813_2.png) [@SBL\_MC](https://forum.inductiveautomation.com/u/SBL_MC)\
**Post date:** [May 2, 2022, 6:13am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/13 "2022-05-02T06:13:07Z")

</div>

I see, seems to be other issues than we experience with 4K and 125 or 150 % scaling. Text and images looks good. In the script editor the mouse pointer and actual position is off, worse the longer the script line is. I believe snap is also affected by this. I tend to write scripts in notepad++ and copy them to the editor. The struggle is real. 😅

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 2, 2022, 3:10pm UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/14 "2022-05-02T15:10:39Z")

</div>

Does the editing pane in the script console have the same issues?

🤞 in 8.1.18 we’ll be replacing all the scripting areas throughout the designer with the same backing editor as the script console, which should ~~bring a new set of problems~~ solve the current known problems, particularly with high DPI.

---

<div class="post-metadata">

**Author:** ![SBL\_MC](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbl_mc/32/56813_2.png) [@SBL\_MC](https://forum.inductiveautomation.com/u/SBL_MC)\
**Post date:** [May 3, 2022, 5:29am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/15 "2022-05-03T05:29:48Z")

</div>

Script console works, so that sounds great. 😀

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 3, 2022, 5:42am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/16 "2022-05-03T05:42:19Z")

</div>

I’m curious what you mean. As in there’ll be an execute button and a little console window?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 3, 2022, 9:58am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/17 "2022-05-03T09:58:24Z")

</div>

_ **Editor** _. Left hand side.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 3, 2022, 10:57am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/18 "2022-05-03T10:57:44Z")

</div>

Ah, so only a backend change, there won’t be any discernble difference for users

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 3, 2022, 11:50am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/19 "2022-05-03T11:50:07Z")

</div>

> [@nminchin](#):
>
> there won’t be any discernble difference for users

Paul has promised much more than that. 😍

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 3, 2022, 11:55am UTC](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024/20 "2022-05-03T11:55:18Z")

</div>

Debugging? 😬😬

[Next page](https://forum.inductiveautomation.com/t/how-to-set-java-designer-to-use-100-screen-scaling-without-changing-windows-setting/59024.md?page=2)
