F3 (language)
From Wikipedia, the free encyclopedia
F3 (Form follows function) is an upcoming declarative User interface language (not XML based) developed by Chris Oliver, from Sun Microsystems.
F3 is a compiled statically typed declarative scripting language for the Java Platform providing automatic data-binding, full support for 2D graphics and standard Swing components as well as declarative animation. As F3 is built on top of the Java Platform, it is easy to use any Java classes in F3 scripts.
Contents |
[edit] History
F3 is not public yet but it is claimed that it will be Open sourced in February 2007 on the java.net website [1]. As April 7, 2007, the site is still not available for public access
Chris Oliver became a Sun's employee through their acquisition of SeeBeyond Technology Corporation in September 2005.
[edit] Examples
Here is a simple Hello world program for F3 :
Frame { title: "Hello World F3" width: 200 content: Label { text: "Hello World" } visible: true }
It shows the following panel :
This program can also be written in this way :
var win = new Frame(); win.title = "Hello World F3"; win.width = 200; var label = new Label(); label.text = "Hello World"; win.content = label; win.visible = true;
[edit] External links
[edit] Related projects
- Groovy http://groovy.codehaus.org/
- jRuby http://jruby.codehaus.org/
- Jython http://www.jython.org/Project/index.html
- OpenLaszlo http://www.openlaszlo.org/