Wednesday 5 December 2007

Java and Me

Been a long time now since I updated. Actually could probably say the everytime i update.. Butthat would just point out the bleeding obvious, so no more!

Some changes have been made to my life recently, moved back and in to my GFs apartment in Skelleftehamn. Cleaned up and gave back my apartment to the landlord in Sundsvall. Quit my band, well actually we broke up as we live in different parts of the country. Started my last projekt for school at TietoEnator.

And It's this last subject i want to talk about. See im writing this program in Java. It reads data from an XML-file and converts it into inputs for outputs in a GUI. Basically it's a GUI for an already existing TeleCom product being released in a couple of weeks. Nothing fancy and it's just for TeleCom buisnesses. That being said i must say that what i do like about working in java is the premade packets. They serve most of onces needs and when they don't most of the times you can tweek them into doing so. But sometimes you jsut want to smack the creators stright in the face and scream: - "What the hell did you just do? WHAT THE HELL DID YOU DO!?!?"

Eherm .. My problem is this. I input table data in to a Object[][] the i insert this as data into a table with two columns. Each row in column two has a different ValueType. This is however not supported by default. So we have to simply overide a couple of functions. No biggi. Problem is when you update the cells. Say that you want to edit cell 1:1 - which is a Float. You edit the value. Press enter .. An it converts the value into a String. Why am i getting so uppset by this?

a) It should not do this!
b) I loos the integrity check in the cell.
c) It should not FUCKING do this!

So now two days later i still hasn't figured it out by myself. I am relying on some people on the java.swing forum to help me out. Problem is .. they tend to answer after 18 .. it's now 14. This whole day goes by so slowly .. well back to work! .. and don't complain about my grammar.. Im Sweedish god damn it, and the spell check dosn't work :(