Disposing a dialog in touch devices in lwuit
Posted
by MANISH
on Stack Overflow
See other posts from Stack Overflow
or by MANISH
Published on 2010-02-27T08:21:58Z
Indexed on
2010/04/15
10:03 UTC
Read the original article
Hit count: 236
I am displaying a dialog when a user touches the screen and want the dialog to dispose when the user touches anywhere outside the dialog.i have set setDisposeWhenPointerOutOfBounds() to true though by default it is...n hav written the following code in pointerReleased() event but whenever the user touches the screen outside of dialog the dialog disposes but not without executing the code that shud be executed only wen the x,y are within the dialog....plz help me out....ne1...
public void pointerReleased(int x, int y) { dispose(); if (contains(x, y)) { actionCommand((cmds[l.getSelectedIndex()])); } }
© Stack Overflow or respective owner