Running Multiple Java files
I need some help here. I have a java program which reads text from website(Prog1), now in order create a webpage to display the output, I created an applet (Prog2).
What I actually want is to populate the output of Prog1 onto the display fields in Prog2? Does anyone has any idea how to do this? I know its very simple but I am new to Java so thats why I dont know how to proceed with this.
My thought is that Prog1 should run first and have some data, and then Prog 2 runs to display the data (they are in the same project).
I am using NetBeans IDE 5.0
your prog2 needs a method, where prog1 can inject the data. let's assume that method is called prog2.setData(String dataAsString);
then you can do the following:
prog1 works and gets some data. when done prog1 makes prog2.setData(myData);
prog2 uses the myData to populate and display the data.
Last Post: 01-17-2006, 05:18 AM
By sakatnse in forum Java
Last Post: 12-06-2005, 01:07 AM
By Lori Piquet in forum Talk to the Editors
Last Post: 10-10-2002, 07:01 AM
By Mike Tsakiris in forum .NET
Last Post: 10-04-2002, 06:32 PM
By Chris Winters in forum Java
Last Post: 10-17-2001, 04:36 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL