You can then add this bean to your Swing hierarchy.
panel.add(coordViewer, BorderLayout.SOUTH);
The Coordinate Viewer bean then attaches a Mouse Motion
Listener to the view and displays the information according to the
properties of the manager:
The coordinates and altitude are then transformed into
human readable strings using
IlvDisplayPreferencesProperty unit management and formatters.
Depending on the coordinate formatter, latitude/longitude/altitude
may not be the only fields. For example, a UTM coordinate system displays
the zone, zone number, easting and northing information. The Coordinate
Viewer uses JLabel
HTML capabilities to
display the different parts of the coordinates as an HTML table.