Bonjour,
J'essaye de créer une boite de dialogue qui puisse proposer aux utilisateurs divers choix.
Ces choix se trouvent dans un tableau d'entier.
J'ai testé plusieurs codes différents mais ne trouve pas la solution.
int[] tabl = new int[10];
...
...
int tabs = (int)JOptionPane.showInputDialog(null,"Choississez un point", "Opérateur",JOptionPane.QUESTION_MESSAGE, null, tabl, tabl[0]);
erreur =>>
The method showInputDialog(Component, Object, String, int, Icon, Object[], Object) in the type JOptionPane is not applicable for the arguments (null, String, String, int, null, int[], int)
J'ai essayé d'adapter le code
http://baptiste-wicht.developpez.com/tutoriel/java/swing/debutant/?page=page_6#LVI
En vous remerciant pour votre aide .
Configuration: Windows XP
Firefox 1.5.0.11