Professional Documents
Culture Documents
> Anatoli
– In Java since 1998
– Sun Java IDE developer and architect
– JavaFX Community Manager
> Greg
– Web head for the past 12 years
– Servlet 2.5 Specification lead
– Started grass root Ajax efforts at Sun
– Ajax Architect for Sun
– Lead for jMaki
Stereotype
> Part of the problem is Swing
– AWT/Swing container/component hierarchy is a tree of
rectangular (mostly gray) boxes
– If all you do is compose Swing components together
the result is typically the Ugly Java technology GUI
– Same problem exists with other toolkits, e.g., GTK, VB
> UI Designers and Swing programmers are using different
building blocks
– UI Designers compose designs in tools like Photoshop
and Illustrator
– The building blocks they use have direct analogs in Java
2D API, but not necessarily in Swing
import javax.swing.*;
frame.setDefaultCloseOperation(JFrame.EXIT_ON_
CLOSE);
frame.pack();
frame.setVisible(true);
}
}
import javafx.ui.*;
Frame {
title: "Hello World JavaFX"
width: 200
height: 50
content: Label {
text: "Hello World"
}
visible: true
}
<table>
<tr>
<th>Description</th>
<th>Price</th>
</tr>
<forEach var=”item” items=”${cart.items}”>
<tr>
<td>${item.description}</td>
<td>${item.price}</td>
</tr>
</forEach>
</table>
class HelloWorldModel {
attribute saying: String;
}
Resources
>http://openjfx.dev.java.net
>http://www.sun.com/javafx
>http://jfx.wikia.com
> http://evc-cit.info/jfx/makeapi/api/index.html
Gregory.Murray@Sun.COM
http://weblogs.java.net/blog/gmurray71