RosettaCodeData/Task/User-input-Graphical/NetRexx/user-input-graphical.netrexx

19 lines
448 B
Plaintext

/* NetRexx */
options replace format comments java crossref symbols nobinary
import javax.swing.JOptionPane
unumber = 0
ustring = ''
do
unumber = Integer.parseInt(JOptionPane.showInputDialog("Enter an Integer"))
ustring = JOptionPane.showInputDialog("Enter a String")
catch ex = Exception
ex.printStackTrace
end
unumber = unumber * 1.0 -- just to prove unumber is really a number
say 'Number:' unumber.right(10)', String:' ustring
return