Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to move between views?  RSS feed

Lance Hill
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!