Generally, I would use a pipeline of dialogs as well.
However, in some cases switching panels seems to be more user friendly. Some of these cases may be:
1) When the panels are fairly complex and going back may be common.
2) When you want to show the user a list of the steps and highlight which step your on.
However, adding and removing the panels of their parent can get messy. You may want to consider using CardLayout to store and switch them. When you move forward you create the new panel and add/show it in the cardlayout. If the user goes back, you can simply show the previous panel. When using this type of wizard, I would usually show all steps to the left and highlight which step the user is on.
There are advantages and disadvantages for both the multiple dialog solution and the panel switching solution. Determine which one is best for you.
As for what might be wrong in your program, we would only be guessing. But adding/removing components from their parents can get very messy. I'd suggest to move to either multiple dialogs or cardlayout.
Main Topics
Browse All Topics





by: CEHJPosted on 2003-01-12 at 07:51:16ID: 7711800
I wouldn't do the wizard like that, but would be inclined to show a 'pipeline' of JDialogs.