Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Flash + Java

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
some people are using Macromedias Flash and VB.net, Flash is for drawing
the Graphs and stuffs, can we do it in Java?
if yes does anyone have an example
Best, O
 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To keep things clear, Flash is a client side technology, and in this context, Java will refer to server side tech.

You could use flash to display graph data on the client machine. You could set up a servlet to provide data to the Flash movie. The last couple of versions of Flash have had reasonable support for XML, so it would simply be a case of building some appropriate data.

- Flash movie loads in client browser
- Flash movie requests URL to get data from
- Servlet/Whatever prepares data and sends it to the movie
- Flash movie renders it

It seems that there are some graphing components available for Flash, so the amout of ActionScript you would have to write would probably be fairly minimal.

There is an article here about graphing with Flash, and in particular, getting data from a server for the graph. They just grab the XML from a file, but you could easily grab it from a servlet.

Hope this helps.

/edit

I may have misread your question. If you actually want to use Java to display the charts, then you probably want to look at something like JFreeChart. It gives you the ability to generate charts as images, and if I rememeber correctly, there is some kind of applet example for interactive charts. I may be wrong about the latter though.
[ March 07, 2005: Message edited by: Horatio Westock ]
 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Horatio
Thanks for the help, so i guess i'll be using servlet
and http request and responces to get and send the data.
Best, Omar
 
    Bookmark Topic Watch Topic
  • New Topic