Slow performance of javax.swing.JOptionPane.showOptionDialog

pasanindeewara's Avatar, Join Date: Aug 2009
Light Poster
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.
devunion's Avatar, Join Date: Sep 2008
Go4Expert Member
Could you post your code?