To my surprise it was really not a big deal to complete this task and it tooks me around 4 hours until i got my first homebrew swing nixie clock.
Because i received some question on how i did this i will shortly explain it here:
- First I created a prototype in Adobe Fireworks
- Second step was creating a javabean and transfer the drawing from Fireworks to Swing
- Third step was creating a JFrame which contains the clock logic and 6 of the nixie number components (2 hour, 2 minutes and 2 seconds)
And that’s the result:
Of course the second step is the one which takes the most of the time because you have to define all the geometric elements in Swing, pick all the colors from the prototype and create gradients out of it etc.
There is of course still enough place for improvements but for me it looks ok and it was worth the time that i spent on creating it…
So as always i attached the sourcecode as Netbeans project (NixieClock.zip)…enjoy swinging…
If you like follow me on twitter…