Java - AWT/Swing

Einzeiliger Eingabe-Dialog

javax.swing.JOptionPane.showInputDialog(..)
Für eine einfache Eingabe gibt es bereits einen vorgefertigten Dialog:


String result = JOptionPane.showInputDialog(null, "Eingabe bitte:", "Eingabe-Titel", JOptionPane.QUESTION_MESSAGE);