1

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.

J. Steen
  • 15,470
  • 15
  • 56
  • 63
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80

3 Answers3

2

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.

Nikhil
  • 1,279
  • 2
  • 23
  • 43
1

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

Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
  • 1
    Lajos Arpad-I cannot understand the phrase -"it reverses the direction of the transition." so please give more details.Dont mistake me. – SIVAKUMAR.J Jun 26 '12 at 13:31
  • 1
    If you don't understand transitions, please read this: http://lwuit.java.net/javadocs/com/sun/lwuit/animations/Transition.html it might be helpful. – Lajos Arpad Jun 26 '12 at 13:47
0

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.

Himanshu
  • 31,810
  • 31
  • 111
  • 133
Shyam Tha
  • 11
  • 1
  • 3
  • How does this answer the question about the *technical differences* between the two? You're just stating your personal preference here. – J. Steen Dec 11 '12 at 06:40