Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

December/2024
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
222324 25262728
293031    

[ Archives News
for 'Java Technology' ]

home > news > java technology > how to say "happy holidays" in 3000 bytes or less

How to Say "Happy Holidays" in 3000 Bytes or Less

Today's lead Java Today item is Jeff Friesen's "Happy Holidays" post, in which he describes the code behind his JFXStudio Holiday Challenge winning JavaFX application. The application was created with JavaFX 1.2 (via NetBeans IDE 6.5.1) on top of Java SE 6u16. Here's Jeff's description of his app: Happy Holidays presents a scene where snowflakes fall into a snowbank while "Let It Snow! Let It Snow! Let It Snow!" (the classic 1945 Christmas song by lyricist Sammy Cahn and composer Jule Styne) plays. When the music ends, Figure 1's logo fades into view. And here's the application itself: Happy Holidays [click to run] Note that if you are on a Linux system, the app may not run. It loads, but then hangs on my Gentoo and Ubuntu Linux systems after I "Click to start." On my Mac and Windows machines it works fine. JFXStudio Challenge contests impose a limit of 30 lines of JavaFX code and 3000 total characters. Jeff met this challenge by submitting a Main.fx consisting of a single 2996-character line, with variable names shortened to the point where their meaning would be unclear to all but the original developer. In his post, however, Jeff presents the original code, with standardized formatting and meaningful variable names. The original code is also divided into two files, Main.fx and Snowflake.fx. The code includes some structures that reflect Jeff's original more ambitious plans for the...


Date: December, 30 2009
Url: http://www.java.net/blog/editor/archive/2009/12/30/how-say-happy-holidays-3000-bytes-or-less


Others News

©2002-2019Java-Virtual-Machine.net website editor | free icons | easy free website builder | top website builder | bootstrap forms