Bonjour,

Je post ca ici parce que je pense que c'est la catégorie la plus adaptée ^^

Voila mon code:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
    private void ecouteurMenuAjouter() {
    	HashMap itemsMenus = men.getItems();
        JMenuItem menuAjouter = (JMenuItem)itemsMenus.get("Ajouter");
 
    	menuAjouter.addActionListener ( new ActionListener() {	 
	            public void actionPerformed (ActionEvent e) { 
	            	if ( dicoSupport != null ) {
	            		Object[] typePredef = { "String", "Integer", "Boolean", "Float", 
	            								"Dimension", "Color", "Font" };
 
	            		String cle = JOptionPane.showInputDialog(fen, "Entrez la nouvelle clé :");
	            		Object type = JOptionPane.showInputDialog(fen, "test3", "test", 
	            								JOptionPane.INFORMATION_MESSAGE, null, typePredef, typePredef[0]);
 
	            		if ( type == "Integer" 	) { Integer assoc 	= ajouterInteger() ; }
			      		if ( type == "Boolean"	) { Boolean assoc 	= ajouterBoolean() ; }
			      		if ( type == "Float"	) { Float assoc 	= ajouterFloat() ; }
			      		if ( type == "Dimension") { Dimension assoc = ajouterDimension() ; }
			      		if ( type == "Color"	) { Color assoc 	= ajouterColor() ; }
			      		if ( type == "Font"		) { Font assoc 		= ajouterFont() ; }   
			      		if ( type == "String"	) { String assoc	= ajouterString(); }
	            		else { 
	            			String assoc == "null" ; // Ligne 517
	            		}
 
	            		modif = true;
 
	            		dicoSupport.put(cle, assoc);
	            		reLoadDicoSupport();
	            	}
	             }		    	
    	} );
    }
Et voila mon erreur :
';' expected -> line 517


Je vois vraiment pas d'où ca vient.


Pouvez-vous m'aider ?

Merci par avance

carnibal