SyntaxFix
Write A Post
Hire A Developer
Questions
JOptionPane.showInternalInputDialog probably does what you want. If not, it would be helpful to understand what it is missing.