# Numeric Keypad Not Resized

**URL:** <https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183>\
**Category:** Ignition\
**Created:** [June 30, 2015, 1:35pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183 "2015-06-30T13:35:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [June 30, 2015, 1:35pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/1 "2015-06-30T13:35:50Z")

</div>

Hello all,

It seems that the “Touch Screen Keyboard Width” in “Project \> Properties \> Client \> User Interface” does not change the size of the Numeric Keypad (it works for the alphanumeric one)  
I also tried with the function system.gui.showNumericKeypad() but it does not work either.

Anyone has already had this problem ?

Is there another way to resize the Numeric Keypad ?

Best regards.

---

<div class="post-metadata">

**Author:** ![Dannymichaud](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@Dannymichaud](https://forum.inductiveautomation.com/u/Dannymichaud)\
**Post date:** [February 17, 2017, 2:59pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/2 "2017-02-17T14:59:24Z")

</div>

Same problem here

---

<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:** [February 17, 2017, 4:08pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/3 "2017-02-17T16:08:41Z")

</div>

This is a known issue - it’s in the pipeline for future releases of Ignition.

---

<div class="post-metadata">

**Author:** ![Kleppe85](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kleppe85](https://forum.inductiveautomation.com/u/Kleppe85)\
**Post date:** [November 14, 2018, 12:08pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/4 "2018-11-14T12:08:53Z")

</div>

Still not fixed in Ignition 7.9.9 ?

---

<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:** [November 14, 2018, 3:59pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/5 "2018-11-14T15:59:26Z")

</div>

That is correct - it’s still in the backlog. We have a long list of things to fix and features to add, and triage on that list always means some things get delayed.

---

<div class="post-metadata">

**Author:** ![Kleppe85](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kleppe85](https://forum.inductiveautomation.com/u/Kleppe85)\
**Post date:** [November 20, 2018, 11:14pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/6 "2018-11-20T23:14:09Z")

</div>

I understand. But is there some kind of workaround for this? Or do I just tell my customer that this is what it looks like? Got kinda big on a 24" full-hd monitor 🙂

---

<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:** [November 20, 2018, 11:24pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/7 "2018-11-20T23:24:07Z")

</div>

No idea what else this may break, but the only way to directly affect the scaling of the numeric keypad at present would be to:

1. Create a new [JDesktopPane](https://docs.oracle.com/javase/7/docs/api/javax/swing/JDesktopPane.html) with a particular size.
2. Import and call [`com.inductiveautomation.factorypmi.application.components.touchscreen.AlphaNumericKeypadDialog#setDesktopPane`](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/factorypmi/application/components/touchscreen/AlphaNumericKeypadDialog.html#setDesktopPane-javax.swing.JDesktopPane-) which will then be used to set the size/location of the NumericKeypadDialog:

---

<div class="post-metadata">

**Author:** ![Brian](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@Brian](https://forum.inductiveautomation.com/u/Brian)\
**Post date:** [July 10, 2020, 8:46pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/8 "2020-07-10T20:46:26Z")

</div>

Old thread, but the closest I found to my situation. I’m on 7.9.6, FWIW.

I was hoping you could elaborate on the JDesktopPane and call Keypad actions to pull up a custom sized keypad. I have pretty much zero experience with Java Swing (or Java for that matter), and I’m a little lost.  
What I have so far:

```auto
from javax.swing import JDesktopPane
import com.inductiveautomation.factorypmi.application.components.touchscreen.AlphaNumericKeypadDialog
newPane = JDesktopPane()
newPane.setSize(400,470)
newPane.setLocation(5,5)

newPane.setVisible(1)

```

I feel like I should be doing the Keypad stuff between the setLocation and setVisible lines, but I can’t figure out how to call it.

I’m also not sure that the setVisible line is doing anything, as I’m not getting even an empty window popping up. Might be that it has no contents, so nothing to show.

I’m also a little concerned that you mentioned AlphaNumericKeypadDialog, and not NumericKeypadDialog. I’m guessing the latter is actually the one I need to display a numeric keypad. However, that doesn’t appear to have the setDesktopPane method, as far as I can tell.

My use case for all this is I’m setting up a Raspberry Pi with the touchscreen that’s available for it as a small user station. I’m wanting a keypad for an operator PIN. I’ve gotten the numeric keypad to pop up on the password field properly, but it’s pretty small on the 800x480 screen.

Any thoughts?

---

<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:** [July 10, 2020, 9:30pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/9 "2020-07-10T21:30:07Z")

</div>

Well, your best bet is to update to 8.0; in 8.0.4 the issue described in this thread was fixed. It’s been a while since I made the changes, but I think even doing what was described on the NumericKeypadDialog wouldn’t work well.  
You’ll probably have a better time making your own popup window and using some hacks described elsewhere on this forum to make it ‘modal’, to fake your own keypad dialog.

---

<div class="post-metadata">

**Author:** ![Brian](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@Brian](https://forum.inductiveautomation.com/u/Brian)\
**Post date:** [July 10, 2020, 10:00pm UTC](https://forum.inductiveautomation.com/t/numeric-keypad-not-resized/10183/10 "2020-07-10T22:00:27Z")

</div>

Well, maybe they can just live with a tiny keypad for a little while. There’s a showstopper bug for me that’s keeping me from upgrading to v8 (ticket 122253 if you’re interested). Well, that and the reluctance to go through another learning curve + potential breaking changes to be solved. I’ll work up the nerve at some point (after 122253 is fixed).

It is good to know that this will be a perk of upgrading though 🙂
