really looks like you should be using a modal JDialog (instead of the simplified JOptionPane),
then you can easily do just about anything you want with it.
Joined: Apr 24, 2010
But I have to used JOptionPane only because I have here a popup actually a JPanel from where user can select a User Info by Searching and after selecting that information he can add that in the JTextField.
So thats why I had shifted from JFrame to JOptionPane.
For that also I had raised Posts earlier in this Forum.
I had been sugessted to use a JOptionPane and which actually worked perfectly.