I once needed a tabs which should have a button to close them in a java application. Sadly, in Java 5 this was not built in (it is in Java 6). After quite some time of searching, I stumbled upon this site:
Walker Software Blog: JTabbedPane Part 2"
It was quite obsolet and (because of the lac of generics) not really beautiful, but it worked. I updated it to Java 5, so if anyone needs such a thing for Java 5, here it is:
All code is from Walker Software. Everything I did was updating it and changing the constructor to accept one of the three skins (a normal one, one that looks like Eclipse 3 and one that is simply beautyful). Oh, and I repaired the ToolTip, which diddn't show up in the original.