Bonjour,

je veux afficher le resulat de jreeChart dans un document pdf pour le momennt j'affiche le graphe en local
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
public static void main(String[] args)
	{Connexion con=new Connexion();
          jfcExample j = new jfcExample();
 
 
         Double d;
         String ch;
        try {
            Connexion.rs = Connexion.st.executeQuery("select * from file");
            while (Connexion.rs.next()) {
                d=Connexion.rs.getDouble(2);
                ch=Connexion.rs.getString(1);
                System.out.println(""+d);
                System.out.println(""+ch);
              j.setValue(ch, d);
            }
 
        } catch (SQLException ex) {
            System.out.println("nndxc,;kx");
        }
 
		j.setTitle("Example Chart...");
		j.setSize(640, 430);
 
		j.setChar("Example Chart...");
 
		j.Show();
	}
}