javax JOptionPane how to require input

htt‮www//:sp‬.lautturi.com
javax JOptionPane how to require input
String str = JOptionPane.showInputDialog(null, "User input:");
Created Time:2017-09-25 01:48:31  Author:lautturi