Ajouter un commentaire

hervemoha

c'est un projet pour la réalisation d un guide routier du maroc. Voici donc ce que contient le fichier ville.txt et route.txt

//Ville.txt
ceuta;51701;540;70
Tanger;90000;461;73
Larache;92000;439;111
Kenitra;14000;416;150
Rabat;10000;400;171
Casablanca;20000;376;183
Mohammedia;20800;303;177
El Jadida;24000;338;192
Safi;46000;287;225
Essaouira;44000;261;255
Agadir;80000;231;378
Taroudannt;83000;263;383
Zagora;45900;457;359
Erfoud;52200;597;320
Errachidia;52000;340;384
Azrou;53100;505;247
Sefrou;31000;514;222
Fes;30000;485;175
Taza;35000;555;168
Oujda;60000;703;127
Nador;62000;679;110
Mellila;13200;635;88
Al Hoceima;32000;579;102
Tetouan;93000;513;90
Chefchaouen;91000;500;112
Ouezzane;16200;501;143
Meknes;50000;463;187
Beni Mellal;23000;412;273
Marrakech;40000;335;319
Ouarzazate;45000;393;338
Mhamid;45400;469;399
Tata;84000;302;397
Tiznit;85000;124;422
Tarfaya;70050;47;495
Figuig;61000;754;270

// Route.txt
51701;93000;40
51701;90000;100
90000;93000;60
90000;92000;85
92000;93000;105
92000;14000;106
14000;10000;45
14000;50000;50
10000;20000;70
10000;50000;130
10000;20800;50
20000;24000;100
20000;40000;240
20000;20800;30
24000;46000;140
24000;40000;200
46000;44000;150
46000;40000;160
44000;40000;175
44000;80000;190
80000;40000;260
80000;83000;70
80000;85000;90
80000;84000;265
83000;40000;280
83000;84000;195
45900;45000;165
45900;45400;60
45900;52200;250
52200;61000;440
52200;45000;315
52200;52000;80
52000;53100;280
52000;45000;310
52000;61000;400
53100;23000;30
53100;31000;50
53100;50000;60
31000;30000;60
30000;50000;50
30000;35000;120

et pour le message d erreur quand je selectione une ville, il m affiche ceci:
nombre de ville dans le fichier route.txt: 60

nombre de ville dans le fichier Ville.txt: 35

nombre de ville dans le fichier Ville.txt: 35
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at Herve.Mafenetre.itemStateChanged(Mafenetre.java:335)
at javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
at javax.swing.JComboBox.selectedItemChanged(Unknown Source)
at javax.swing.JComboBox.contentsChanged(Unknown Source)
at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
at javax.swing.DefaultComboBoxModel.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Merci pour l'aide que vous m'apportez.
Je peux vous envoyez le dossier du projet pour voir ce qu il en est comme ça peut etre vous en saurez plus.Mais je penses avoir tt mis içi.
Je compte sur votre aide
Merci à ts

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
 K  K  X   X  FFFF  H  H  V     V 
K K X X F H H V V
KK X FFF HHHH V V
K K X X F H H V V
K K X X F H H V