Home | AJAX Demos | Java Demos | Products

GLG Java Stock Ticker Demo

This demo uses a GLG Bean to display and periodically update a stock graph in a web browser. The updates are driven by data supplied by a CGI program running on a web server. Check the GLG Graph Feedback demo or the AJAX Graph Selection Demo for examples of interaction with a GLG graph that display tooltips and other information about the datavalues of the graph pointed to by the cursor.


Source Code: This demo uses an out-of-the-box GlgBean as an applet, so there is no additional Java source code.

This drawing uses a widget from the GLG Widgets Catalog. The drawing can be modified interactively and new custom graphs can be created using the GLG Graphics Builder.

The graph can keep the data source connection open, or it can connect to the data source periodically to get new data and then disconnect.

The graph's appearance can be customized interactively in the GLG Graphics Builder to use different representations for the Low, High, Open, Close and other values displayed in the graph.

NOTE ON RUNNING LOCALLY: This demo will not show any data when it's run locally because it tries to get the data from the www.genlogic.com web site, which, when the demo is run locally run locally, causes the Security Exception to occur. To run locally, change the DataURL parameter to point to a local source of data to avoid the exception, or run the demo as a stand-alone Java program.