I have an inputDialog but I would like to know if you could add events to that dialog since I do not want to enter letters and that when I press a letter I just do not write it I only have this
JOptionPane.showInputDialog(null, "Ingrese la cantidad a llevar: ");