This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JavaFX and the fly likes a more advanced example of JavaFX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "a more advanced example of JavaFX" Watch "a more advanced example of JavaFX" New topic
Author

a more advanced example of JavaFX

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
a ticking analog clock


Ping & DNS - updated with new look and Ping home screen widget
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
MP3 player done with JavaFX
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15290
    
    6

These seem rather pointless to me for showing off JavaFX. The way Sun is marketing it is for RIA's which would be direct competition with Flash/Flex as well as mobile devices. Both the clock and the mp3 player require:

1. You already have Java installed
2. You must download, manually, their script/app
3. You must manually execute their script

Show me a web site where I can go and click something and see the magic without having to do anything else and I might be impressed. I've got plenty of clocks and mp3 players. :roll:


GenRocket - Experts at Building Test Data
Augusto Sellhorn
Ranch Hand

Joined: May 24, 2007
Posts: 57
Originally posted by Gregg Bolinger:
These seem rather pointless to me for showing off JavaFX. The way Sun is marketing it is for RIA's which would be direct competition with Flash/Flex as well as mobile devices. Both the clock and the mp3 player require:

1. You already have Java installed
2. You must download, manually, their script/app
3. You must manually execute their script


I did the clock just to learn the syntax and start experimentation. it's not part of a marketing campaign for JavaFX. For that, try Chris Oliver's demos.
Also the clock is just because I like to make gadgets, and I use google desktop a lot. Would be nice if these gadgets were crossplatform, so JFX provides a good way to build them.

Points 2 and 3 are false, that was just easier for me to do at the time. You can webstart enable them, or even embed them as an applet.
http://sellmic.com/blog/2007/05/22/javafx-clock-update-now-with-transparency/


Show me a web site where I can go and click something and see the magic without having to do anything else and I might be impressed. I've got plenty of clocks and mp3 players. :roll:


You can just click on my 2nd example and you are set to go. As for downloading a VM, you also have to install flash to use flash you know? You might also want to read up on the Consumer JRE.

[ May 24, 2007: Message edited by: Augusto Sellhorn ]
[ May 24, 2007: Message edited by: Augusto Sellhorn ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15290
    
    6

Thanks for the updated link to the JNLP version. Unfortunately, it doesn't work for me. I get the icon on the task bar but no clock ever shows up. the Opaque version works fine. I tried on an XP machine at work with Java5.

As for downloading a VM, you also have to install flash to use flash you know? You might also want to read up on the Consumer JRE.

Yea, I know. But what has been beat to death I'll say anyway, it takes a user 30 seconds to install Flash. And the Consumer JRE doesn't really exist yet. So you can't really use that in defense.

Look, don't get me wrong. I've never been a big flash fan and I am not bashing JavaFX. Nor am I bashing your work in particular. All I am saying is making these "toy" demo apps isn't what helps a professional decide if they want to invest in the technology. And I know that wasn't your intent. You were just learning and showing, which is fine. But we need to see real apps that can compete with the likes of Flash/Flex if Sun truly wants to market it that way.

On the other hand, if Sun wants JavaFX to be the new Swing framework, then I suppose these kinds of apps would help that cause.
Augusto Sellhorn
Ranch Hand

Joined: May 24, 2007
Posts: 57
They showed such demos @ JavaOne. Check out Chris' demos, and in this link check out the PDF reader they wrote in jfx.


http://sellmic.com/blog/2007/05/11/javafx-pdf-viewer-demo/
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15290
    
    6

Originally posted by Augusto Sellhorn:
They showed such demos @ JavaOne. Check out Chris' demos, and in this link check out the PDF reader they wrote in jfx.


http://sellmic.com/blog/2007/05/11/javafx-pdf-viewer-demo/


Ugh. Ok, the demos at JavaOne were JavaFX copies of 2 flash sites and they do nothing. Is it impressive that we can get that kind of smooth animation in Java? Sure. I just need something a bit more serious to be convinced. And no, I am not just waiting around for something to happen. I am dabbling in it myself.

And the PDF viewer is nice. But really the most impressive part about it wasn't the JavaFX stuff. It was the fact that Sun is working on a PDF renderer that they are trying to open source.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Originally posted by Gregg Bolinger:
Yea, I know. But what has been beat to death I'll say anyway, it takes a user 30 seconds to install Flash. And the Consumer JRE doesn't really exist yet. So you can't really use that in defense.

Look, don't get me wrong. I've never been a big flash fan and I am not bashing JavaFX. Nor am I bashing your work in particular. All I am saying is making these "toy" demo apps isn't what helps a professional decide if they want to invest in the technology.

I initially was very excited about JavaFX because I saw it as a return to the desktop application for internal enterprise use. The initial download time for a frequent user is negligible. If however JavaFX only gets used as a Flash clone I don't think folks will take to it kindly and it will fade away.

I found this thread thread interesting because here Chris Oliver himself shows how to make a server communication via HTTP (communication is essential for any application with a central databse, folks). My jaw dropped when a member cautioned that such functionality was not in the spirit of JavaFX! On the contrary, I say such functionality should be worked directly into the JavaFX Script language!

I've been somewhat disappointed by the types of demos as well, especially that the cereal application (the closest thing to a real app I've seen so far) has all of its data hard-coded in the FX files. The current demos are neato, but they're more or less toys in a sandbox. JavaFX has a lot of potential for the business world but still needs to address the most essential component of Web 2.0: communication.
[ June 05, 2007: Message edited by: Marc Peabody ]

A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a more advanced example of JavaFX
 
Similar Threads
Observer Pattern
Swing or JavaFx
WA #1.....word association
Is it worthy learning JavaFX?
What is JavaFX