Hi there,
Please see my code below:
var result = plugins.dialogs.showInfoDialog( "", "please choose",
"1", "2", "3", "4");
plugins.dialogs.showErrorDialog( "", result);
The first line shows a dialog with four buttons.
After the dialog is shown the focus stays in the first button.
Then I use tab to move the focus to other buttons.
I press the enter key when the focus rectangle is in the third button.
But the result is the first button’s name. It always returns the first button’s name even though the focus is not in the first button. But if I press space bar instead of enter key then it works normal.
Is this intended behavior or a bug?
Thanks
Hameed
Its a default Java/swing dialog…what version of Java and OS are you using?
Servoy Developer
Version R2 2.2rc3-build 321
Java version 1.5.0_01-b08 (Windows 2000)
which LAF are you using?
Works ok for me, Java version 1.4.2-b28 (Windows XP) (Windows LAF)
I am using Kunststoff LAF
It seems a bug introduced by Java 1.5, we have to report this to SUN
Answer from SUN:
Thank you for submitting a bug using our bug submit page.
This issue is related to Bug ID: 5050784. This behavior is expected and is not a bug.
You can review this bug and look for related issues on the Java Developer Connection Bug Database at:
http://developer.java.sun.com/developer/bugParade/
and
http://bugs.sun.com/bugdatabase/view_bu … id=5050784