Changes:
Built with Maven
Source and runtime upped to Java 7
Packaged as both zip archives and Windows setup program
First attempt at visually repositioning a city if it goes out of view
Download from http://worldclock-application.java.net/
Changes:
Built with Maven
Source and runtime upped to Java 7
Packaged as both zip archives and Windows setup program
First attempt at visually repositioning a city if it goes out of view
Download from http://worldclock-application.java.net/
In the previous post I ‘ported’ HK2 to work on Jigsaw, in this post I adapt Worldclock to use it.
svn checkout https://svn.java.net/svn/worldclock-application~svn/tags/application6-jigsaw-maven ~/dev/worldclock-hk2
svn checkout https://svn.kenai.com/svn/lh-playground~svn/jigsaw/worldclock-hk2 ~/dev/worldclock-hk2-downloads
Last updated: 2012-02-02
In the previous post I created a Maven plugin for Jigsaw, now I’ll adapt Worldclock to use it.
The transformed source code is also available at:
https://svn.java.net/svn/worldclock-application~svn/tags/application6-jigsaw-maven
mkdir -p ~/dev/worldclock
2. Get the source
cd ~/dev/worldclock
svn checkout https://svn.java.net/svn/worldclock-application~svn/tags/application6-jigsaw ~/dev/worldclock/application
Remove the files that are not needed.
rm -rf ~/dev/worldclock/application/*.*
rm -rf ~/dev/worldclock/application/src/META-INF
The current combinaison of Jigsaw/JDK8/Ubuntu does not support the sytem tray properly, so adjust the Worldclock.java to bypass it
In the previous post I built WorldClock using just the command line, this time I’ll use Maven for compiling.
sudo apt-get install maven2
Set JAVA_HOME to Jigsaw, so that Maven uses Jigsaw:
export JAVA_HOME=~/dev/jigsaw/build/linux-i586/jdk-module-image
(last updated 2010-06-20)
Moving on from Hello World to WorldClock, a simple multimodules application.
Install Subversion:
sudo apt-get install subversion
Create the directories:
mkdir -p ~/dev/worldclock
Get the source:
cd ~/dev/worldclock
svn checkout https://worldclock-application.dev.java.net/svn/worldclock-application/tags/application6-jigsaw ~/dev/worldclock/application –username guest
After a few issues upgrading to JavaFX 1.0 / WidgetFX 1.0 (the SwingComponent.wrap() does not quite do exactly the same thing as the old Component.fromJComponent(), at least for me the resize does not work exactly the same), I’ve released version 0.3 of the Worldclock widget. Also in this release the possibility to enforce the aspect ratio of the world image(s).
Web page: https://worldclock-application.dev.java.net/#Widget Direct launch: http://widgetfx.org/dock/launch.jnlp?arg=https://worldclock-application.dev.java.net/widget-webstart/launch.jnlp
Enjoy,