Forums Register Login

small application

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
Code tags please.
+Pie Number of slices to send: Send
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.
Regards,
Manfred.
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 600 times.
Similar Threads
take a look at this please
buttons don't work
awt classes
Help-needed
HashMap Issues and Such
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:10:46.