// color map widget.
final ScalarMap clrMap = findMapByType(Display.RGB);
if (clrMap != null) {
try {
final ColorMapWidget mapWidget = new ColorMapWidget(clrMap);
mapWidget.setBorder(BorderFactory
.createTitledBorder("Color Map"));
add(mapWidget);
} catch (VisADException e) {
LOG.log(Level.WARNING, "Failed to create color map widget", e);
} catch (RemoteException e) {