Dies ist eine alte Version des Dokuments!
one-lined entry-dialogue
javax.swing.JOptionPane.showInputDialog(..)
For a simple entry there is already a prefabricated dialogue:
String result = JOptionPane.showInputDialog(zero, "entry please:", "entry-heading", JOptionPane.QUESTION_MESSAGE);