Archives for 'September, 2011'

JUnit – a better way how to test intentional exception throws

September 14th, 2011 by Libor Jelinek

From time to time during writing JUnit testing (you’are writing test, aren’t you :-) ) you will need to test that do throw an exception. Have a look at methods to test such intentional expected behaviour.

Read the rest of this entry »

Tags: , | Posted in: Java | No Comments »

Coding Etiquette

September 14th, 2011 by Libor Jelinek

Easy to follow rules improving overall code legibility and later maintenance.

Read the rest of this entry »

Tags: | Posted in: Java | No Comments »

How to change look & feel of NetBeans IDE and application

September 14th, 2011 by Libor Jelinek

Standard GUI toolkit of Java is Swing. NetBeans IDE and Platform is written in Swing. It’s widely used and accepted. It’s cross-platform and it’s doesn’t look very well under (GTK+) Linux.

Read the rest of this entry »

Tags: | Posted in: NetBeans | 5 Comments »

Average user’s top reasons why Ubuntu rocks

September 9th, 2011 by Libor Jelinek

What the pop-music bands, hockey starts and famous actors have in common? Fans. Me, as I big Ubuntu fan, I’m always ready to argue a lots of reasons why average user should think about Ubuntu Linux. I’ve tried to list it in this post with hope that it can be useful for not-yet-Ubuntu-fans.

Read the rest of this entry »

Posted in: Ubuntu | No Comments »

JPQL in examples

September 9th, 2011 by Libor Jelinek

Quick brief example driven guide to Java Persistence Query Language (JPQL)

Read the rest of this entry »

Tags: , | Posted in: Java | No Comments »

Disabling any selection ListSelectionModel for JTable

September 9th, 2011 by Libor Jelinek

Unfortunatelly there’s no easy way how to disable any selection in JTable.

Read the rest of this entry »

Tags: , | Posted in: Java | No Comments »

Java Persistence API in non-JEE environment

September 8th, 2011 by Libor Jelinek

JPA, as a one of the most useful technology from JEE world, is commonly overlooked in Java SE enviroments. There is a lot of documentation, manuals, tutorials but most of them are aimed to JEE enviroments. Unfortunatelly some of essential concepts is different if used outside JEE. Fortunatelly most of things are simpler. In this post I would like to briefly introduce you into JPA 2.0 for Java SE heavily based on official JPA 2.0 specification in simplified “destilled” form. Read the rest of this entry »

Tags: , | Posted in: Java | 1 Comment »

Sidebar decoration image
Copyright © 2001-2009 Virtage Software. Virtage is registered trademark of Libor Jelinek.
Developer blogs and tutorials Virtage Devblog is proudly powered by WordPress.