Bonjour,
je suis actuellement entrain de me coder une applet et j'ai un petit soucis... Lorsque je lance le run et que je teste tout fonctionne correctement, en cliquant sur un bouton j'arrive à obtenir l'affichage de mon tableau mais lorsque je le lance à partir du navigateur je n'obtiens plus rien...
Dans un premier temps voici ou se trouve l'erreur :
Et voici ma table concernée (une partie car elle est grande):
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 public void actionPerformed(ActionEvent ae) { if (ae.getActionCommand() == "Tab") { <souligne>RequestManager.displayInTab(StationPanel.getTagSQ(), timePanel.getStartDate(), timePanel.getEndDate());</souligne> }
Pour finir voici mes erreurs, la ligne 73 est celle soulignée :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 public static void displayInTab(ArrayList<String> tabTag, Date startDate, Date endDate) { HashMap<String, Statistique> statList = StationPanel.getStatistiques(); TabFrame tabFrame = new TabFrame(startDate, endDate); ........
Le problème vient des sources JFreeChart mais que dois je faire pour ésoudre le problème ?
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
35
36
37 Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset at com.actemium.syclopp.analyser.AnalyserPanel$1.actionPerformed(AnalyserPanel.java:113) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.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.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(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) Caused by: java.lang.ClassNotFoundException: org.jfree.data.category.CategoryDataset at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 25 more Caused by: java.io.IOException: open HTTP connection failed:http://localhost/Docs/org/jfree/data/category/CategoryDataset.class at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 28 more
Merci beaucoup pour votre aide !![]()
Partager