Java unit covnerter with Swing GUI