I'm developing an eSWT application for Nokia 5800, it works nice so far.
But the Button widgets (style SWT.PUSH) does not work as expected. I need to press them about 5 times, the click is always optically visible. But the listener will be notified only 1 time. The same behaviour is Nokia's eSWT ShowCase application.
There are no problems on the emulator (S60 5th SDK 1.0), it works fine there.
What's the problem? Is this an eSWT bug on Nokia 5800? It makes the buttons unusable :-(
OK, I've found a workaround for this strange bug:
It's possible to use a MouseListener for the button and use it's method mouseUp() for the button click. This is not the suggested method, because the API recommends the usage of the SelectionListener for the Button widgets. Anyway - it works fine...
Could I see your Button selection listener?
Are you listening to widgetDefaultSelected instead of widgetSelected ?
Quote from Button's API: "widgetSelected is called when the control is selected. widgetDefaultSelected is not called."