JavaFX speed o meter
I've did another test application in JavaFX, its a (bit of) remake of my old java download speed meter applet.
Screenshot:

To run the application: click here
The old applet looks like this:

And can be found here
For the old applet I had to hack the HTTPConnection class to be able to report a speed during the transfer, creating Listeners and so on. In JavaFX that isn't necessary:
Java:
And than just put your own Timer on it to report the progress:
Java:
And to update the label on the screen, just declare it like this:
Java:
Notice the keyword "bind", that will tell javaFX to update this text node as soon as the Main.currentSpeed variable is updated. No more listeners!
I wanted to do an upload test too, but I've hit a bug...so that's now submitted to the development team of javafx here
Screenshot:

To run the application: click here
The old applet looks like this:

And can be found here
For the old applet I had to hack the HTTPConnection class to be able to report a speed during the transfer, creating Listeners and so on. In JavaFX that isn't necessary:
Java:
1 | function downloadFile() {
|
And than just put your own Timer on it to report the progress:
Java:
1 | var timer: Timeline = Timeline {
|
And to update the label on the screen, just declare it like this:
Java:
1 | Text {
|
Notice the keyword "bind", that will tell javaFX to update this text node as soon as the Main.currentSpeed variable is updated. No more listeners!
I wanted to do an upload test too, but I've hit a bug...so that's now submitted to the development team of javafx here
06-'09 Chateau Feuille de Laurier
06-'09 Crashing with humor
Comments
Quite annoying that the application is installed and even makes a shortcut on the desktop. Any way to disable this?
Sorry for the shortcut, I can disable that with the jnlp file. The app isn't installed, only cachedQuite annoying that the application is installed and even makes a shortcut on the desktop. Any way to disable this?
Well I mean that it is listed in the Programs in Vista. Is it automatically removed after a while?
Maybe it's my laptop, but around 90% it started using 50% of CPU (dual core machine) which made everything go very sluggish. I do hope this is not intended behavior?
Hij zegt dat ik 20 mbps haal...en ik heb maar 8mbps thuis 
Ben jij de beheerder van userbase? die speedtest daar gebruik ik wel eens, maar deze komt er precies ook wel accuraat mee voor de dag !
Nope, ik ben geen beheerder, had een opzetje gemaakt als vervanging van de speedtest maar is er door drukte niet van gekomen...