Data in Ticker class

Go to http://www.nseindia.com 

On the Right-Top corner you will find 2 lines (similar to Marquee in HTML). If you move your mouse over it it will stop. If you drag it to the right side it will start scrolling right & if you drag it to your left it will start scrolling to your left.

I checked the source code and found that an applet has been used to do this. I was told that the values are read from a text file(formed from database)....

How can i generate this Ticker class with my data !!
viswa20Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Venci75Connect With a Mentor Commented:
this loads a serialized String[] from the 'http://<codebase>/TickerFeed'
0
 
viswa20Author Commented:
i did not understand ...Venci75 can you plz. elaborate ?
0
 
viswa20Author Commented:
What is the location where i have to put my datafile ? Is it a *.txt file ? How should the data be in the *.txt file
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
dorothy2Commented:
Listening..
0
 
heyhey_Commented:
note that if you use their applet/data without their permission, this is a pure theft.
0
 
Venci75Commented:
not a text file - it is a file, containig a serialized String[]. You can create it by using:
String[] data; // initialize this array.
FileOutputStream fos = new FileOutputStream("filename");
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject(data);

then this file must be accessible through:
'http://<applet host>/TickerFeed'
url.

... but I agree with heyhey - you must use this applet only with their permition ...
0
 
girionisCommented:
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to Venci75

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0
All Courses

From novice to tech pro — start learning today.