ping sensor and java

i need to build a gui in java (eclipse) or any other IDE to bring up data that i'm getting from my ultrasonic sensor. i'm not sure on where to look or get started can someone help me with this?
Thanks in advance.

This Python demo shows how to communicate with an Arduino. It also has a JRuby alternative - JRuby uses the JVM.

The principles in these programs apply in any language. I have written Java GUI stuff using JRuby but I draw the line at "proper" java programming.

If you are not required to use Java this Python GUI demo may be of interest.

...R