JSR 303… 2 years later
March 26, 2008 on 8:54 am | In Technical stuff | No CommentsBack in ‘06, I wrote about JSR 303, which aims to bring Bean Validation to the JDK. Well to be specific, it defines a meta-data model and API for JavaBean validation. The spec. draft aslo states that it will not be specific to any one tier or programming model. It will specifically not be tied to either the web tier or the persistence tier, and will be available for both server-side application programming, as well as rich client Swing application developers.
I, along with others, who relied on an external validation module, thought this JSR was a great idea. However, for whatever reason, it didn’t progress as fast as some of us would have liked. Now, it seems to be back in gear. Emmanuel Bernard has made a sneek peek available. Take a look, and as he asks, give some feedback.
Dr Uncle Jimmy…
March 10, 2008 on 7:53 am | In Funny | No CommentsSaw this skit on SNL; I think it’s pretty funny. Ya might like…
OK, copyright infringement, so youtube took it down… crap. Oh well, my favorite line from the entire thing: “Sure you could find a better barbecue, or a safer surgical experience…”
constrained resize
March 7, 2008 on 7:45 pm | In Swing | 1 CommentOK, I have a JFrame whose dimensions had to be constrained on resize. Basically, it has to grow equally in width and height (think Checkerboard). In order to do that, I had to override the JFrame’s setBounds. However, I had no idea how to apply this same behavior when teh Frame is maximized. When maximized, the Frame would simply blow up and fit the entire screen. Well, it turns out that the same way setSize has been deprecated, setMaximiumSize - although not deprecated, it’s ignored for Frames. So use setMaximizedBounds.
Rectangle bounds = getGraphicsConfiguration().getBounds();
int minOfSizes = (int) Math.min(bounds.getWidth(), bounds.getHeight());
setMaximizedBounds(new Rectangle(new Dimension(minOfSizes, minOfSizes))); // viola!
IDEA hidden features…
March 7, 2008 on 9:40 am | In Technical stuff | 1 CommentIf you are a long time user of IntelliJ IDEA, you already know why it’s great. If you are not, I’ll tell you the IDE just makes things easier. Aside from the community, and large number of quality plugins, it has killer shortcuts. Now some of you may say, yeah you can add your own shortcuts in any reasonable IDE (eclipse). This is true. However, the major difference in IDEA is the built-in shortcuts dwarf what I’ve seen in other IDEs. There are so many shortcuts that you will miss a few, guaranteed. Well, a recent post on the Xebia blog gave me 2 new shortcuts, that I know I’ll be using heavily. Check ‘em out for yourself.
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^

