×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    170

    Switch Displayform

    Hi everybody,
    the Application a write switches between two display forms. I can display both form but if i whant to diplay the secound form after i returned to first one the IDE eclipse shows the error message:
    java.lang.IllegalStateException

    To set the secound form visible, I use the command:
    display.setCurrent(form2);

    to return to the first form I use the same command:
    display.setCurrent(form1);
    What am I doing wrong?
    THX
    regards Lpinguin

  2. #2
    Regular Contributor
    Join Date
    Mar 2005
    Posts
    249
    according to javadoc (Display.setCurrent):

    IllegalArgumentException - if nextDisplayable is an Alert

    you might want to check your code. Good luck.

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    170
    Ok found a way. form.deleteAll().
    Now I can display the secound form as often I whant. But now there is a other problem. The second time I call the second Form the select Buttom disappears. I created a new Method, which creates everytime when it is called the Form and when I close it I delete all Elements of the Form.
    What do I have to do to get the select button visible? Do I have to initialize it explicit?
    How do this works?

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    170
    I have fixt the problem!!! Ha! THX for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×