I am using a JOptionPane to get a string. By klicking "OK" the string is saved. Now i want the second JOptionPane to pop-up to enter the second necassary string. Is there any opportunity to add an ActionListener to the "Ok"-button from the first JOptionPane? Or what is the best solution of my problem? I also checked the docs, but did not found something useful yet.
My JOptionPanes lool nearly similar.