Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

small application

Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have three files all of which are compiling.
One of them is a main screen with two buttons one when clicked should access the second file (an input screen) and when the second is clicked it should access the third file(a feedback screen) . I am unable to link them . What is the best way to do this. the code for the main file is as follows

(edited by Cindy to format code)
[ January 24, 2002: Message edited by: Cindy Glass ]
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code tags please.
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sartaj,
You should either use dialogs or frames and only show the other classes once the buttons are clicked. Each separate dialog or frame should allow registering listeners so that your main frame can register as a listener. For example, hitting the input button brings up the Input frame. Your main frame registers itself as a listener of the Input frame. Once the user has filled in all the required inputs they hit some Apply or Accept button and your registered main frame gets the event. Then the main frame can query the input frame for the inputs specified. Once the inputs are queried, the main frame can dipose of the input frame.
I hope you get the idea. Each class can then validate its own user settable items.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic