• 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 switch between windows ( if not from Start ).

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my program I have two separate windows and I want to be able to switch between them easily via a button on each window.
I even managed to get to the second screen via a button on the first. The question is how do I get back to the first screen, given that it was defined as :



etc. ?

As I see it, the problem is that this is in the start routine and so it is not a method than can be executed via a line of code elsewhere in the program.
Rightly or wrongly I am used to setting up windows in this way ( via the start routine ) but this is my first time with a second window.
I'm afraid that at worst I would have to rewrite from scratch with the code shown above in its own method,
executed via a line of code elsewhere in the program. At best it will be a simple case of saying


but even if so, where exactly can I place that ? Thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic