Java and arduino

Hello I've made a GUI using Java and I'm trying to communicate with the arduino. I've been told this can be done via a serial connection.

First issue is I'm unfamiliar with this, I've never done this before. Basically what I'm looking to accomplish is to develop a GUI that can read a voltage high or low. This is for my senior project so I have done my fair share of programming, but nothing to this level. Any help would be appreciated, thankyou.

Helpful info
For java I'm using eclipse and the board is a arduino mega 2560

Have you got Processing?
Lots of examples of how to communicate with an Arduino.

I don't, if I were to use processing could I use the same code that I wrote for the GUI in Java?

I don't see why not.

Ok I'll give that a shot, thankyou for the advice!