In this video you can see how to build a GUI to control Arduino with Ardulink. I used two Ardulink components and a simple SWING button. The Ardulink ConnectionPanel is able to search for serial ports connected to the Arduino and select one. the Ardulink PWMController is able to manage the power with modulation Arduino's pins. The button handles the event for the connection. Simply use the Ardulink Link class to connect to the Arduino board.
More details on http://www.ardulink.org/how-to-write-...