File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

small application

 
Sartaj Syed
Greenhorn
Posts: 22
  • 0
  • 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 ]
 
Paul Stevens
Ranch Hand
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code tags please.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • 0
  • 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.
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic