JavaFX in Action - Manning Publications
JavaFX in Action - Manning Publications
JavaFX in Action - Manning Publications
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
6 CHAPTER 1 Welcome to the future: <strong>in</strong>troduc<strong>in</strong>g <strong>JavaFX</strong><br />
At the bleed<strong>in</strong>g edges of the software development world some programmers dared to<br />
commit heresy; they asked whether the web browser was really the best platform for creat<strong>in</strong>g<br />
RIAs. Look<strong>in</strong>g back they saw a wealth of old desktop software with high-fidelity UIs<br />
and sophisticated <strong>in</strong>teractivity. But this software used old desktop toolkits, bound firmly<br />
to one hardware and OS platform. Web pages could be loaded dynamically from the<br />
<strong>in</strong>ternet on any type of computer; web RIAs were nimble, yet they lacked any capacity<br />
for sophistication.<br />
1.1.3 Form follows function: the fall and rebirth of desktop Java<br />
From its first release <strong>in</strong> 1995 Java had featured a powerful technology for deploy<strong>in</strong>g<br />
rich applications with<strong>in</strong> a web page. So called Java applets could be placed on any<br />
page, just like an image, and ran <strong>in</strong>side a secure environment that prevented unauthorized<br />
tamper<strong>in</strong>g with the underly<strong>in</strong>g operat<strong>in</strong>g system (figure 1.4). While applets<br />
boosted the visibility of the Java brand, the idea <strong>in</strong>itially met with mixed success. The<br />
applet was a hard-core programm<strong>in</strong>g technology <strong>in</strong> a world dom<strong>in</strong>ated by artists and<br />
designers, and while many page authors drooled over Java’s power, few understood<br />
how to <strong>in</strong>stall an applet onto their own site, let alone how to create one from scratch.<br />
Java applet’s ma<strong>in</strong> rival was Macromedia Flash, an animation and presentation tool<br />
boast<strong>in</strong>g a more designer-friendly development experience. Once Macromedia’s plug<strong>in</strong><br />
began to ga<strong>in</strong> ground, the writ<strong>in</strong>g was on the wall for the humble Java applet. Already<br />
Sun was start<strong>in</strong>g to ignore user-fac<strong>in</strong>g Java <strong>in</strong> favor of big back-end systems runn<strong>in</strong>g<br />
enterprise web applications. The Java applet vanished almost as quickly as it arrived.<br />
Figure 1.4<br />
An applet (the game<br />
3D-Blox) runs <strong>in</strong>side<br />
a web page, liv<strong>in</strong>g<br />
alongside other web<br />
content like text and<br />
images.