# Behaviour of application.showFormInDialog in Linux (Ubuntu)

**URL:** <https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596>\
**Category:** Classic Servoy\
**Created:** [August 5, 2010, 11:43am UTC](https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596 "2010-08-05T11:43:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerardo.gomez](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@gerardo.gomez](https://forum.servoy.com/u/gerardo.gomez)\
**Post date:** [August 5, 2010, 11:43am UTC](https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596/1 "2010-08-05T11:43:03Z")

</div>

Hi!

I get a weid behaviour in Linux when I use the application.showFormInDialog() function… If the form I show in the dialog has a tab inside, all fields ‘seem’ to be not editable when the dialog is showed… Well, I said ‘seem’ because if I click in other window (not Servoy window) and I get back in dialog (the dialog and main form lose focus and get focus one more time), fields are editable… However, if the form doesn’t a tab, the behaviour is the expected (fields are editable immediately)

I only get this behaviour in Linux (Ubuntu)… Nobody gets same problem?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 5, 2010, 12:18pm UTC](https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596/2 "2010-08-05T12:18:53Z")

</div>

do you really use Suns java or OpenJDK?  
there are some problems with OpenJDK i believe.

---

<div class="post-metadata">

**Author:** ![gerardo.gomez](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@gerardo.gomez](https://forum.servoy.com/u/gerardo.gomez)\
**Post date:** [August 5, 2010, 12:37pm UTC](https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596/3 "2010-08-05T12:37:20Z")

</div>

> jcompagner:  
> do you really use Suns java or OpenJDK?  
> there are some problems with OpenJDK i believe.

Yes, I saw several post regarding “errors” with OpenJDK, but I use Sun’s Java…

---

<div class="post-metadata">

**Author:** ![gerardo.gomez](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@gerardo.gomez](https://forum.servoy.com/u/gerardo.gomez)\
**Post date:** [August 6, 2010, 6:45am UTC](https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596/4 "2010-08-06T06:45:11Z")

</div>

Hi!

Nobody gets the same behaviour?

In the attachment, a simple solution with this behaviour (this solution uses Servoy sample ‘udm’ server)

How to use:

- click in “Open Form in Dialog” \> in dialog is showed a form with all fields (but “product id”) editable;
- click in “Open Form in Dialog - with tab” \> in dialog is showed a form with all fields not editable \> click in other window not the main solution window \> get back in dialog \> fields (but “product id”) are editable

More data:

Ubuntu version: 10.04 LTS

java -version output:

> java version “1.6.0\_20”  
> Java™ SE Runtime Environment (build 1.6.0\_20-b02)  
> Java HotSpot™ Client VM (build 16.3-b01, mixed mode, sharing)

Thanks in advance!

[my\_sample\_solution.servoy](https://forum.servoy.com/uploads/short-url/8wiIg0wd2BAw7UBR3dAl09Jvxjd.servoy) (284 KB)

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [August 10, 2010, 8:11am UTC](https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596/5 "2010-08-10T08:11:40Z")

</div>

Gerardo,

I can reproduce this with my linux.  
Please create a case in our crm with the sample attached.

Rob

---

<div class="post-metadata">

**Author:** ![gerardo.gomez](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@gerardo.gomez](https://forum.servoy.com/u/gerardo.gomez)\
**Post date:** [August 10, 2010, 8:25am UTC](https://forum.servoy.com/t/behaviour-of-application-showformindialog-in-linux-ubuntu/12596/6 "2010-08-10T08:25:37Z")

</div>

Done. Case Id 311827.

Thanks Rob!
