Java gui add connect dialog