سؤال

What is the difference between com.sun.lwuit.Form.show() and com.sun.lwuit.Form.showBack()? I think both are displays the form. I think both are same.

هل كانت مفيدة؟

المحلول

If you choose form.Show() the form will slide in from the right side of the display and move to the left (By default.)

If you choose form.showBack()the form will slide in from the LEFT side of the display and move to the RIGHT(By default.)

You can reverse the direction of transition too.

نصائح أخرى

Here and here you can see the difference. showBack is also showing the form, but it reverses the direction of the transition.

In my personal use I use Form.show() to show new Form and the Form.showback() is used to show previous shown form with data filled by user as cache.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top