Unterschiede
Hier werden die Unterschiede zwischen der gewählten und der aktuellen Version gezeigt.
| en:swing:simple-input-dialog 2012/09/24 15:53 | en:swing:simple-input-dialog 2020/01/22 21:00 aktuell | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | [[swing:swing|Java - AWT/Swing]]\\ | + | [[en:swing:swing|Java - AWT/Swing]]\\ |
| - | ====== one-lined entry-dialogue ====== | + | ====== one-lined input-dialogue ====== |
| // javax.swing.JOptionPane.showInputDialog(..)//\\ | // javax.swing.JOptionPane.showInputDialog(..)//\\ | ||
| - | For a simple entry there is already a prefabricated dialogue:\\ | + | For a simple input there is already a prefabricated dialogue:\\ |
| \\ | \\ | ||
| <html> | <html> | ||
| Zeile 25: | Zeile 25: | ||
| \\ | \\ | ||
| <code java> | <code java> | ||
| - | String result = JOptionPane.showInputDialog(null, "entry please:", "entry-heading", JOptionPane.QUESTION_MESSAGE); | + | String result = JOptionPane.showInputDialog(zero, "entry please:", "entry-heading", JOptionPane.QUESTION_MESSAGE); |
| </code> | </code> | ||