jpcap -- a network packet capture library for applications written in Java.

The jpcap distribution includes both

The jpcap network capture tool performs real-time decomposition and visualization of network traffic.

Capture console and visualization component in action:

github | source | javadoc | sourceforge | freshmeat