SwingX JXDatePicker with Time, Source Code

Finally!

I’ve put together a diff patch against the swingx project from the current cvs that contains my changes made to the JXDatePicker. First i had to stop the various components from “Cleaning” the date, which envolves setting the time to midnight so that the calculation of the date difference can work.

It was a while ago.. i don’t think its too clean a solution, but maybe someone can take ideas from it and step further with it, i will eventually continue it, just not right now.

SwingX JXDatePicker Diff

JXDatePicker with Time Support..kinda

After reading alot of people battling with the time and JXDatePicker and also facing the challenge myself, i decided to battle JXDatePicker and convert it to handle a JSpinner instead of the JFormattedTextField.

Ok, i’ll level with you, currently.. i did a pretty bad job of this, but i’ll deffinately be proceeding with this further. This was kind of a proof of concept that it could be done this way easily, as i’d been thinking about it for a few days. Yeah i was even so lazy i just quickly built swingx, set the main class as the JXDatePicker and made it webstart for a quick demo.

Aerith, Java Swing Looking SMOOOTH!

Romain Guy, Richard Bair, Joshua Marinacci & some other swing & java2d programmers have all been working hard towards this excellent application i just found out about today, only screenshots are available at the moment, however these screenshots are enough to make me want it ;) Go check it out, it looks like a photo management application that allows you to store location information against the photo, the locations are then hooked with google maps and well.. yeah go look :)

Aerith, a Very Cool Swing Demo (Really)

Matisse, the Netbeans GUI Builder

Matisse, the new gui builder in the development builds of Netbeans 4.2 seems to gaining a big following of people who would normally say “GUI Editor sux, code it by hand or don’t bother”. I’m one of those people and i’ll start by saying, i’m so god damn impressed something this good is being given away for free for me to use, even if (like now) i’m dodging exceptions to do my work.

I’m so impressed with the way the new GUI Builder works I was just starting to re-do all my panels for my current project in the builder, then i heard some not so joyous things. Sun isnt guarenteeing the file format is going to work in 4.2, moreso, someone basically said that 4.2 (non-dev) WOULD NOT load forms designed in 4.2dev. So I guess for now i’m stuck piss-farting around with the editor and waiting patiently for 4.2 to cop a full release.

Oh yeah.. patience? don’t have any.. i want to use it now!! :)

Icons.. Icons.. ICONS!

I’ve been searching for days now for a decent icon set that covers everything i require (note: this isnt that much). I’ve checked out the open-office.org icon set, i’ve checked out the eclipse icon set, kde, gnome.. u name it i’ve checked it. Now im not seeing these icon sets dont cut it, because they do.. they’re quite good actually, but well.. I just cant bare to look at my application knowing it could look ten times better if only i could justify $150US to buy some of the awesome sets that are out there.

So anyway.. I think im going to attempt to make my own icons, i cant justify the $$$’s these people are asking for their icons, even if it is kind of a reasonable price, i just dont have that kind of money.

If anyone could point me in the direction of something i’ve missed in icon land it’d be appreciated. I’m deffinately feeling the sets from glyFX, a perth based company, but i dont wanna shell out for those packs.

Interesting Bug Maybe..

Came across something interesting today while setting look and feels in my Java Application in Windows.

Basically i was trying to set the JGoodies Look & Feels and noticed a few weird things happening. I have 2 JFrames in my application, one is the login screen, the other is the main app screen. After setting the look and feel correctly in the main class in my app, i then initialised the two JFrames and setDefaultLookAndFeelDecorated(true); Then upon launching the look and feel decorated the 2nd window (app), but not the first (main), so i switched the code around and initialised the main app frame first and the login second.. and now it was decorating the login screen but not the main app.

This is actually the first time i’ve seen this happen before, but it’s kind of also the first time I’ve played with another look and feel that’s not native to the computer the app is running on. Anyway, this little problem was resolved by performing a setDefaultLookAndFeelDecorated(true); on the JFrame class BEFORE intialising all my JFrames, now everything looks normal.

A bit of a weird one…