numero=JOptionPane.ShowInputDialog("Inserisci un numero : ");
l'errore è qui:
il metodo statico si chiama showInputDialog().

Ciao !!!