posted 18 years ago
In the SwingSet2 demo, they have a toolbar that lets you choose which demo to display by clicking on any of the toolbar buttons. If I take the demo out of the tabbedPane and put it directly in the content panel, clicking on the toolbar buttons does not immediately take you to the new view. One click removes the previous view and partially redraws the screen with the new view, while the second click finishes redrawing the screen with the new view.
It would be greatly appreciated if someone could provide an example (or point me to one) of how to do this so only one click is required to replace the current view with the selected one.