I'm using javax.swing.JOptionPane.showOptionDialog to get a simple user input. But this code is very slow. It takes seconds to load the input dialog box which is irritating. Please can someone suggest an alternative for this?

thx in advance.