Fast Java ME prototyping and usability studying (blogs.sun.com)
One of the fun parts of working with Java technology is the ability to do fast things like prototyping a mobile UI using a regular Web browser (which has Java technology already available). Just program up a mobile UI prototype and put it inside a cell phone skin and embed it in a blog post. Easy. (Well, OK, maybe not that easy, but easy enough that you get the idea). The power of Java technology is that it is ubiquitous. It's on your desktop/laptop PC (in all Web browsers) and in your cell phone (and on your Blu-ray disc player, PlayStation 3, TV set-top box, etc, etc, you get the picture).
So, if I want to show you something cool, I can run it on my mobile phone and show you in my Web blog post...
*NOTE: Internet Explorer users, if needed click on top bar that reads "This website wants to run the following...." then select "Run ActiveX control".
Cool, eh? I'll be posting other neat mobile UI prototypes for everyone's feedback. It's the advantage of iterative (rapid) development... Mobile Java style! :-)
- Java ME and J2ME
JavaFX Home (www.javafx.com)
Sun Microsystems Releases JavaFX Preview (www.sun.com)
openjfx: Home (openjfx.dev.java.net)
JOKe's Weblog : Weblog (www.jroller.com)
JavaFX Preview SDK - What's In, and What's Out at Simon's Blog (www.psynixis.com)
7/29/2008
JavaFX Home (www.javafx.com)
JavaFX Home (www.javafx.com)
Reflection in JavaFX - Crying baby ! (blogs.sun.com)
On the way to exploring little more API of JavaFX, I reached to a fair animation. That is reflection. Here is the output of "crying baby". I always scare of using cartoon character because those are Copyright Image.
![]()
And lots of guys kicked me in the last post because code size was too big, but now its Java FX and I can also show the power of scripting :-). Here is the code:
import javafx.application.Frame; import javafx.application.Stage; import javafx.scene.geometry.Circle; import javafx.scene.paint.Color; import javafx.scene.image.ImageView; import javafx.scene.image.Image; import javafx.scene.effect.*; Frame { title: "Crying Baby" width: 400 height: 700 closeAction: function() { java.lang.System.exit( 0 ); } visible: true stage: Stage { fill: Color.WHITE content: [ ImageView { x: 100 y:10 image: Image { url: "http://www.powermixradio.com/GGG-SAD-CARTOON.jpg" } effect: Reflection { bottomOpacity:0.1 fraction: 1 topOffset: 50 } }, ImageView { x:0 y:300 image: Image { url: "http://www.toyotapartsstore.com/images/71111_2_%20mirror_8CE1.jpg" } opacity:0.5 } ] } }Things to watch:
1. Effect: Reflection -
bottomOpacity:0.1 - set the opacity of image in reflection.
fraction: 1 - set how much part of the image should come in reflection.
topOffset: 50 - How far image from the focus. There are some more useful parameters in this.
2. Opacity of second Imageview allow me to see the reflection of first image, else it will cover the reflection.
On the way to make some moving animation, but I don't know what happened to the support of gif image. gif image works like static image, don't know why ?
JavaFX Blog (blogs.sun.com)
JavaFX Home (www.javafx.com)
JavaFX Home (www.javafx.com)
Native video codecs and Flash content with JMC : Pushing Pixels (www.pushing-pixels.org)
8/5/2008
Silveira's Blog :: Entries :: JavaFX, creating a sphere with shadow (silveiraneto.net)
JavaFX Technology - FAQs (java.sun.com)
brow
Learning Curve Journal: Part 1, Exploring JavaFX Script (java.sun.com)
JavaFX Technology - Reference (java.sun.com)
Getting Started With JavaFX Technology (java.sun.com)
JavaFX Home (www.javafx.com)
Silveira's Blog :: Entries :: JavaFX, creating a sphere with shadow (silveiraneto.net)
CHM Version of JavaFX Documentation | Javalobby (java.dzone.com)
JavaFX Home (www.javafx.com)
IT News and Technology 's Digest Blog: Sun releases JavaFX (driverchina.blogspot.com)
JavaFX Technology At a Glance (java.sun.com)