# system.gui.createPopupMenu

**URL:** <https://forum.inductiveautomation.com/t/system-gui-createpopupmenu/40994>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [November 26, 2020, 5:07pm UTC](https://forum.inductiveautomation.com/t/system-gui-createpopupmenu/40994 "2020-11-26T17:07:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [November 26, 2020, 5:07pm UTC](https://forum.inductiveautomation.com/t/system-gui-createpopupmenu/40994/1 "2020-11-26T17:07:30Z")

</div>

I am using this function a first time and testing over a onMousePress event of a power table as below,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/d/0dc23eb399532a9cd226245acbe64e5de118132b.png)

but it doesn’t seem to be generating any pupup. Also, when I print menu, it prints below in console

```auto
com.inductiveautomation.factorypmi.application.script.builtin.WindowUtilities$JyPopupMenu[,0,0,0x0,invalid,layout=javax.swing.plaf.synth.SynthMenuLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@3628f758,flags=16777216,maximumSize=,minimumSize=,preferredSize=,desiredLocationX=0,desiredLocationY=0,label=,lightWeightPopupEnabled=true,margin=,paintBorder=true]

```

Any help is appreciated on how to create this popup.

Thanks

---

<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:** [November 26, 2020, 7:59pm UTC](https://forum.inductiveautomation.com/t/system-gui-createpopupmenu/40994/2 "2020-11-26T19:59:09Z")

</div>

This only works, as you’ve got it, with a right click action. If you want it to work for left click, you need to pass the x and y coords to the `show` function which you should be able to get from the event object (`event.x` from memory)

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [November 26, 2020, 8:22pm UTC](https://forum.inductiveautomation.com/t/system-gui-createpopupmenu/40994/3 "2020-11-26T20:22:46Z")

</div>

@nminchin thanks
