DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    13

    Running Multiple Java files

    Hi,

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    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.

Similar Threads

  1. How to read SGML files using Java
    By WXY595 in forum Java
    Replies: 1
    Last Post: 01-17-2006, 04:18 AM
  2. Replies: 0
    Last Post: 12-06-2005, 12:07 AM
  3. Has Sun Given Up on the Desktop?
    By Lori Piquet in forum Talk to the Editors
    Replies: 114
    Last Post: 10-10-2002, 06:01 AM
  4. learning c# very confusing.
    By Mike Tsakiris in forum .NET
    Replies: 11
    Last Post: 10-04-2002, 05:32 PM
  5. Playing Flash Files With JAVA Applet/Program
    By Chris Winters in forum Java
    Replies: 0
    Last Post: 10-17-2001, 03:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links