• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to move between views?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic