Add select dialog function in SwingUtils