Archive for April, 2006

New Plog

This is my new blog. Warning: It will not be interesting to anyone except for programmers. I will eventually change from the default WordPress styles, but I’ll need more time than this vacation can offer. I also have to figure out how to modify WordPress so that my code is stylized. Apparently the default installation has a very minimal editor. I couldn’t find any easy ways to set a specific style to a paragraph without going into the HTML. I am trying to avoid going into the HTML because it should be easier than that.

Comments

Stop using the default frame icon in Java

Stop doing this:
frameicon.png

One line of code fixes this:

frame.setIconImage(
new javax.swing.ImageIcon(
getClass().getResource("/ClassPath/icon.png")).getImage());

Comments

Matisse and Netbeans 5

Go check this out right now:

http://www.netbeans.org/kb/articles/matisse.html

I was able to use Matisse to easily create a much more professional looking form in Java than I have ever in the past. I do believe that with Matisse (and after more bugs are worked out) that Java’s Swing toolkit will finally become largely acceptable to people. The problem with the straight jacket of the old layout managers is that they provided a “oh, this was defininely made using the Border Layout” or Card layout or box layout. All of the layout managers made it nearly impossible to put a little OK CANCEL buttons on the bottom right of the screen. It can now be done using Matisse in 2 seconds, just like visual studio.

Right now there are bugs but the bugs will go away and it is stable enough to use. Be careful if you use this system on old forms that you want to convert to Matisse. Make a backup because the new layout helping system sometimes makes your controls just vanish if you do the wrong mouse movement. Again, these will all be fixed but for now I recommend that you use this to completely recreate a form from scratch.

Some screen shots from an application I wrote using MatisseAdvantages over Visual Studio

The new Matisse system seems to be actually better than the system used in MS Visual Studio (the last time I used it). While the anchoring system is great in VS, the anchors in Matisse are generated automatically. Basically this results in spending more time in the layout mode and less time pushing and pulling anchors in the property sheet.

Comments