Archive for November, 2005

Swing Style Aspect

Wednesday, November 30th, 2005

Aspects are great way to to remove redundant code. I started tinkering with another aspect over the holiday because I was getting very tired of having manually style multiple JLabels with the same code over an over again. So instead of having to do something like this:

Font customFont = new Font("verdana",Font.BOLD,10);
Color mediumGray = new Color(172,172,172);
JLabel [...]

JSR 277: Java Module System

Friday, November 25th, 2005

Some have recently pointed out that JSR 277 might be the answer to some of the items mentioned in my last post. There isn’t much to go on simply by reading the JSR page, but does appear to be a step in the right direction. But we’ll have to wait until Java 7 to find [...]

Java Application Bundles?

Friday, November 25th, 2005

Felipe Gaucho brings up an interesting point on his Java.net post about being able to package all of your applications dependencies within a single JAR file. I have often wondered how you might be able to do something like this on the desktop. On the server side, you can place all of your dependencies into [...]

Dependency Injection on the Client

Monday, November 21st, 2005

I never thought I would find dependency injection all that interesting until this past week when I realized how useful it could actually be. In an effort to tinker with aspects further, I ended up creating an aspect that can look up and inject an EJBHome. Sure, it’s not much but it’s amazing how much [...]