ComparatorCutter software creates personalized Java code for implementing Comparable/Comparator. Users input required information, and the software produces top-quality, commented Java source code for insertion into their programs.

To use Comparator Cutter, all you need to do is provide some basic information, including the name of the class of objects you want to compare, the name of your Comparator class, and the names and types of the fields you wish to sort and compare. Additionally, you can specify whether you want ascending or descending order for each field, and tick off "null safe" if you require code that can handle null sort keys.
What's more, you don't even need to install the applet – you can run it online at the Mindprod site. And if you're wondering why the icon is a striped triangle – that's meant to represent items sorted in descending order, with each bar slightly shorter than the last. Overall, if you need to create custom Java code to implement Comparable/Comparator, Comparator Cutter is an excellent choice that will make the process easy and straightforward.
Version 2.1: default now Java 1.8, two new key types.