IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

2D Java Discussion :

[JFreeChart] Probleme d'affichage/date.


Sujet :

2D Java

  1. #1
    Membre confirmé
    Inscrit en
    Mai 2006
    Messages
    125
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 125
    Par défaut [JFreeChart] Probleme d'affichage/date.
    Voila j'utilise la librairie JFreeChart et exactement XYSeries,
    La problème que il affiche la date pas de la manier que je voudrai

    Ma date de ce type:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss", Locale.UK);
    et jfreechart il affiche a partir de 1970 et en ms alors que je voudrai: yyyy-MM-dd_HH:mm:ss

    Je pense que c'est a ce niveau que je doit trouver une méthode pour faire conversion:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    ValueAxis dateaxis = plot.getDomainAxis(); dateaxis.setVerticalTickLabels(true);
    //setDateFormatOverride(new java.text.SimpleDateFormat("MMM-yyyy"));
    j'ai essayer faire de cette manier:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    dateObj = sdf.parse(date);
    series.(dateObj.getTime(),       
    dateObj.getDay()+"/"+dateObj.getMonth()+"/"+dateObj.getYear(),
    v.occurence);
    mais sans résultat, peut être il y a quelqu'un qui a déjà utiliser ...?

    Merci en avance.

  2. #2
    Membre éprouvé Avatar de Actarus78
    Homme Profil pro
    Ingénieur qualité méthodes
    Inscrit en
    Septembre 2005
    Messages
    87
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur qualité méthodes
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2005
    Messages : 87
    Par défaut
    essayes ca:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    sdf = new SimpleDateFormat("yyyy-MM-dd'_'HH:mm:ss", Locale.UK);

  3. #3
    Membre confirmé
    Inscrit en
    Mai 2006
    Messages
    125
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 125
    Par défaut
    J'ai essaye ça ne marche pas...

  4. #4
    Expert confirmé
    Avatar de sinok
    Profil pro
    Inscrit en
    Août 2004
    Messages
    8 765
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    XYPlot plot = chart.getXYPlot();
    DateAxis axis = (DateAxis) plot.getDomainAxis();
    axis.setDateFormatOverride(new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"));

  5. #5
    Membre confirmé
    Inscrit en
    Mai 2006
    Messages
    125
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 125
    Par défaut
    je suis désole j'ai postuler dans les endroit différentes, car je ne trouve pas la solution, j'ai pensée que ces autoriser, je galère pour afficher la date et même ton solution a toi sa ne fonction pas...

  6. #6
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Tu devrais plutôt utiliser un TimeSeries.

  7. #7
    Membre confirmé
    Inscrit en
    Mai 2006
    Messages
    125
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 125
    Par défaut
    j'ai deja utilise TimeSeries, c'est la meme probleme...

  8. #8
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Montre-nous exactement ce que tu as codé alors parce qu'au début de la discussion, il était question d'un XYSeries avec un ValueAxis.

  9. #9
    Membre confirmé
    Inscrit en
    Mai 2006
    Messages
    125
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 125
    Par défaut
    Voici le code, mais j'ai essaye faire avec la TimeSeries, et la même 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
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
     
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Label;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.IOException;
    import java.text.SimpleDateFormat;
    import java.util.*;
    import java.util.regex.*;
     
    import javax.swing.JApplet;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.ChartPanel;
    import org.jfree.chart.ChartUtilities;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.axis.DateAxis;
    import org.jfree.chart.axis.ValueAxis;
    import org.jfree.chart.labels.StandardPieSectionLabelGenerator;
    import org.jfree.chart.plot.PiePlot3D;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.chart.plot.XYPlot;
    import org.jfree.chart.renderer.category.BarRenderer;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.data.general.DefaultPieDataset;
    import org.jfree.data.time.*;
    import org.jfree.data.xy.XYSeries;
    import org.jfree.data.xy.XYSeriesCollection;
     
    import com.sun.org.apache.xerces.internal.impl.xpath.regex.ParseException;
     
    import org.cs.getopt.GetOpts;
     
    public class Catapult { 
     
    	public static void main(String[] args) {
    	parser p;
     
    		String dir=null;
    		String dirImages = null;
    		GetOpts.debug = true;						GetOpts opts = new GetOpts(args, "d:o:");
    				if(opts.hasOptions()){
    			    	int c = GetOpts.NULL_OPTION;
    while((c = opts.getOpt()) != GetOpts.NULL_OPTION) {
    									     switch(c) {
    			case 'd' :	dir = opts.getArg();					  break;
    			case 'o':	dirImages = opts.getArg();
    			  break;
    						}
    					}
    				}
     
    			if(dir!=null) {
    				boolean error = false;
    				try {
    					File os = new File(dir);
    									if(!os.canRead()) error = true;
    		} catch(NullPointerException e) {
    			error = true;
    	System.out.println("Directory not readable '"+dir+"'");
    				}
    		if(dirImages==null) dirImages="./";
    				try {
    				File os = new File(dirImages);
    				if(!os.canRead()) error = true;
    				} catch(NullPointerException e) {
    					error = true;
    	System.out.println("Directory not readable '"+dirImages+"'");
    				}				
     
    				if(!error) {	
    										p =new parser();
    										p.Interface(dir,dirImages);
    				} else {
    					display_help();
    				}
    			} else {
    				display_help();
    			}
    	}
    	private static void display_help() {
    		System.out.println("usage:   java Cat -d: DIRECTORY_TO_ANALYSE  [-o: OUTPUT_DIR]");	
    	}
    }
     
    class ville_cont {
    	String ville;
    	public int occurence;
     
    	public ville_cont(String ville, int x){ 
    		this.ville=ville;
    		occurence=x;
    	}
    	 public static void chercher(Collection conteneur,ville_cont ville){
    		 Iterator it ;
    		 boolean add=true;
     
    		 ville_cont v;
    		 if(conteneur.isEmpty())
    		 {
    		 conteneur.add(ville);	 
    		 }
    		 else 
    		 {
    			 it = conteneur.iterator();			
    			 while(it.hasNext()){
    				 v=(ville_cont)it.next();
     
    				 if((v.ville).contentEquals(ville.ville)){
    					 v.occurence++;
    					 add=false;
    				}
    			}
    			if(add) {
    				conteneur.add(ville);
     
    			}
    		 }		
    	}
     
    }
     
     class BarChart extends JFrame { 
    	  public JPanel pnl; 
     
    	  public BarChart() { 
    	    addWindowListener(new WindowAdapter() { 
    	      public void windowClosing(WindowEvent e) { 
    	        dispose(); 
    	        System.exit(0); 
    	      } 
    	    }); 
    	    pnl = new JPanel(new BorderLayout()); 
    	    setContentPane(pnl); 
    	  }
    	}	
     
     class TestPieChart extends JFrame { 
    	  public JPanel pnl; 
     
    	  public TestPieChart() { 
    	    addWindowListener(new WindowAdapter() { 
    	      public void windowClosing(WindowEvent e) { 
    	        dispose(); 
    	        System.exit(0); 
    	      } 
    	    }); 
    	    pnl = new JPanel(new BorderLayout()); 
    	    setContentPane(pnl); 
    	  } 
    	}
    class parser {
     
    	private static boolean DEBUG = true; 
      	private static DefaultCategoryDataset dataset = new DefaultCategoryDataset(); 
     private static DefaultPieDataset pieDataset = new DefaultPieDataset();
     	private static Collection conteneur = new ArrayList();
     	private static XYSeries series_total = new XYSeries("total",true,false);
     
      	private static Collection conteneur_series_bis = new ArrayList();  
    	private static Collection conteneur_date = new ArrayList();
    	private static Collection conteneur_nom = new ArrayList();
     
    	private static String file_html = "./report.htm";
     
     public parser(){  
     		try {
     			//MyFile = new FileOutputStream("FINAL");
     			//MyFile_2= new FileOutputStream("FINAL_2");	 			
     
     		}
     		catch (FileNotFoundException e) {
     			System.err.println("Fichier introuvable !"); 	
     
     		}	
     	}
     
      	private static int parse_number(String c) {
     		int n =0; 			
     		Pattern pattern;
     		Matcher m;
     		String espaces = "([\t| ]+)";
     		String regexp = "((=)"+espaces+"([0-9]+)"+espaces+")";
     		pattern = Pattern.compile(regexp);
     		m = pattern.matcher(c); 		
     		Pattern p2;
     		Matcher m2;  		
     		if(m.find()) {
     			p2 = Pattern.compile("([0-9]+)");
     			m2 = p2.matcher(m.group());
     			if(m2.find()) {
     				try {
     					 					n = Integer.parseInt(m2.group());
     				} catch(NumberFormatException e) {
     					e.printStackTrace();
     					n = 0;
     				}
     
     			} else {
     				System.out.println("bad regexp");
     			}
     
     
     		} else {
     		System.out.println("INTERNAL ERROR : check regexp");
     		}
     		return n;
     	}
     
     	public void parsing(String f) { 		
     
     		SimpleDateFormat sdf=null ;	 		
     	 try
     		{
     	if(DEBUG) System.out.print("file : "+f);
     	BufferedReader b = new BufferedReader(new FileReader(f));
     
     			String c;
     
     		             boolean catapult=false;
     			boolean ville=false;
         			int h;			
     			String bis,nom, date=null;
     
     			while((c=b.readLine())!=null){		
     
     				if(c.contains("Date")){ 							h=c.indexOf("Date :");				while(c.substring(h+1, h+2).contentEquals(" ")){
     
    			h++;			
    		}								bis=c.substring(++h);						h=bis.indexOf(" ");
                 date=(bis.substring(h+2, h+22));  
    	sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss", Locale.UK);
    										   conteneur_date.add(sdf.parse(date));	    
     
    									   MyFile.write((date).getBytes());					
    					}  		 								
     	if(catapult && ville){									
     	if ((c.contains("MAX")&& c.contains("cat"))){
     										dataset.addValue(parse_number(c), "MAX", date);
     					}
     
     									if (c.contains("   used")&& c.contains("cata")){						 					MyFile.write(("   "+parse_number(c)).getBytes());
     	dataset.addValue(parse_number(c), "USED", date);
     
     		try {						
    							series_total.add( sdf.parse(date).getTime(),parse_number(c));
    						} catch (NumberFormatException e) {							// TODO Auto-generated catch block					   e.printStackTrace();						} catch (java.text.ParseException e) {				// TODO Auto-generated catch block							e.printStackTrace();
    						}
     
    					}				
    	else if ((c.contains("   used")&& c.contains("ca"))){ 						
     	MyFile_2.write(("   "+parse_number(c)+"\n").getBytes());
     
    						}				if(c.contains("--->")){ 		 						 						h=c.indexOf(">");	 						while(c.substring(h+1, h+2).contentEquals(" ")){ 	
     			h++;
     				}					 bis=c.substring(++h); 						 h=bis.indexOf(" ");	 						 nom=bis.substring(0,h+1);						ville_cont	nom_utilisateur =new ville_cont(nom,1); 
    	    ville_cont ville1=new ville_cont(bis.substring(h+1, h+4),1);
     	(conteneur_nom, nom_utilisateur);					    ville_cont.chercher(conteneur, ville1);	
    						}
     				}	
     
     		if (c.contains("G")){
     			ville=true;
     	} else 	if(c.contains("N")||c.contains("CR")){
    		ville=false;
    				}  				 	if(c.contains("Cat")) { 					catapult=true;					
     	} else if(c.contains("M")||c.contains("Lib")||c.contains("S")||c.contains("SY")){
     		catapult=false;
     				}
     
     			}
     
     			if(DEBUG) System.out.println("("+date+")"); 			
     			  ville_cont v;
     			  Collection conteneur_series = new ArrayList();
     			  conteneur_series.addAll(conteneur_series_bis); 
     			  Iterator it = conteneur.iterator();
     			  Iterator it2 = conteneur_series.iterator(); 			
     
     			 while(it.hasNext()){
     				Iterator it3 = conteneur_date.iterator();
     				boolean bb =it2.hasNext();
     				Date cd;
     				v=(ville_cont)it.next();
     
     				 XYSeries series2;
     				 if(!bb){
     
      XYSeries series = new XYSeries(v.ville,true,false);
    	MyFile.write(("      "+v.occurence).getBytes());
    									dataset.addValue(v.occurence,v.ville, date);
    	pieDataset.setValue(v.ville,v.occurence);
     
    //	dateObj.getDay()+"/"+dateObj.getMonth()+"/"+dateObj.getYear(),
    //	v.occurence);	 
     
    								 while(it3.hasNext()&&((cd=((Date) it3.next())).getTime()!=sdf.parse(date).getTime())){
     
                             series.add( cd.getTime(),0);				 
    	}					
    		v.occurence=0;
    										 conteneur_series_bis.add(series);
     				 }
     				 else if (bb){			  					 					 series2=(XYSeries) it2.next(); 					 MyFile.write(("      "+v.occurence).getBytes());			 dataset.addValue(v.occurence,v.ville, date);				 pieDataset.setValue(v.ville,v.occurence);				 series2.add( sdf.parse(date).getTime(),v.occurence);			(date).getTime(),v.occurence);					 v.occurence=0;
     				 }
    			}
     
     		}
     	 	catch (ParseException e) {
    		e.printStackTrace();
    		}     
     		catch (FileNotFoundException e1) {
     			System.err.println("Fichier introuvable !");
     			e1.printStackTrace();
     
     			System.exit(-1);
     		} catch (IOException e2) {
     			System.err.println("Probleme de lecture !");
     			System.exit(-1);
     		} catch (java.text.ParseException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}
     	}
     
     	public  void Interface(String dir,String dirImages)  {		
     
           		parser fich=new parser (); 		
     		File cour = new File(dir);
     		File[] fichs = cour.listFiles();
     		try {
     
     MyFile.write(("    Date"+"          	  MAX"+"    Used"+"   Gnx"+"    Gva"+"    Tun"+"\n").getBytes());
    MyFile_2.write(("    Date"+"             MAX"+" Used"+"\n").getBytes());
     			long x = System.currentTimeMillis();		
     			for (int i=0; i<fichs.length;i++){
     			fich.parsing(dir+fichs[i].getName());
     				}			
     		x = System.currentTimeMillis() - x;
     		System.out.println("\nTemps de traitement: "+x+" ms");
     		}
     		catch(IOException e) {
     			System.err.println("ERROR...");
     		}
     
     		 Iterator it = conteneur_series_bis.iterator();
     		 Iterator it2 = conteneur.iterator();
     		 Iterator it3 = conteneur_nom.iterator();
     
     		 File fichierBC =new File(dirImages+"image_BChart.jpg");
     		 File fichierPC =new File(dirImages+"image_PChart.jpg");
     		 File fichier_nom =new File(dirImages+"image_nom.jpg");
     String code_html2="<center><h1>Analysis / Cata for Grenoble</h1></center><center><img src= '../images/image_PChart.jpg' /></center><br>";
    	   		//String code_html3="<img align='center' src= '../images/image_BChart.jpg'/>\n";	
    	   		String code_html4="<center><img src= '../images/image_nom.jpg' /></center><br>";
     
    BarChart vv=new BarChart();
    JFreeChart barChart = ChartFactory.createBarChart("Mon/Cat", "Date", "Lic", dataset, PlotOrientation.VERTICAL, true, true, false); 
     		ChartPanel cPanel = new ChartPanel(barChart);
    	 	vv.pnl.add(cPanel);		   DefaultCategoryDataset dataset_nom = new  DefaultCategoryDataset();	
    	 	 while(it3.hasNext()){	 		 	 		 ville_cont D =(ville_cont) it3.next(); 			 		 dataset_nom.addValue(D.occurence, D.ville, "Ocurence d'utilisation");
    	 	System.out.println(D.ville);
     
    	 	 }	 	
    	 	BarChart nom =new BarChart();
     		JFreeChart barChart_nom = ChartFactory.createBarChart3D("Usage / Nom", "", "Ocurence d'utilisation", dataset_nom, PlotOrientation.VERTICAL, true, true, true); 
     		ChartPanel cPanel_nom = new ChartPanel(barChart);
     		vv.pnl.add(cPanel_nom);  		
     
    	 		TestPieChart tpc = new TestPieChart();
    JFreeChart pieChart = hartFactory.createPieChart3D("Us / Ville",
    	 		pieDataset, true, true, true);  		
    	 ChartPanel cPanel_1 = new ChartPanel(pieChart); 
    	 		tpc.pnl.add(cPanel_1);  		
    PiePlot3D plot3 = (PiePlot3D) pieChart.getPlot();						plot3.setLabelGenerator(new StandardPieSectionLabelGenerator("{2}"));			
    	 		FileOutputStream  html=null;
    	 		try {
    	 			html = new FileOutputStream(file_html);
    	 		}
    	 		catch (FileNotFoundException e) {
     
    	 		}
    	 		try{
    	 //ChartUtilities.saveChartAsPNG(fichierBC,barChart,450,250);
    	 			ChartUtilities.saveChartAsPNG(fichierPC,pieChart,450,250);
    	 			ChartUtilities.saveChartAsPNG(fichier_nom,barChart_nom,915,300);
     
    	 			html.write(code_html2.getBytes());
     
    		 		html.write(code_html4.getBytes());
    	 		}
     			 catch (IOException e) {
     				 e.printStackTrace();
     			 } 			
     
    		  while(it.hasNext()&& it2.hasNext()){
     			 	ville_cont v =(ville_cont) it2.next();	 	File fichier =new File(dirImages+"image_"+v.ville+".jpg"); 	
                 XYSeriesCollection c = new XYSeriesCollection();
     				 c.addSeries(series_total);
     				 c.addSeries((XYSeries) it.next());
     JFreeChart chart = ChartFactory.createXYLineChart("Cat Us ", "date", "Cat",  c, PlotOrientation.VERTICAL, true, true, false);			 				
                             XYPlot plot = (XYPlot) chart.getPlot(); 
     	            plot.getRenderer().setSeriesPaint(0,Color.black);
     	            plot.getRenderer().setSeriesPaint(1,Color.red);		
     
      //probleme de date 				 
      //XYPlot plot = chart.getXYPlot();
      //DateAxis axis = (DateAxis) plot.getDomainAxis();
    // axis.setDateFormatOverride(new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"));
    	ValueAxis dateaxis = plot.getDomainAxis();  				dateaxis.setVerticalTickLabels(true); 				
     
     	        try {
     	   ChartUtilities.saveChartAsPNG(fichier,chart,915,300);		
    	// production html			
    				String code_html="<center><img src= '../images/image_"+v.ville+".jpg' /></center><br>";
     		 		try {
     		 			html.write(code_html.getBytes());
     
     		 		} catch(IOException e){
     		 			e.printStackTrace();
     		 		}
     
     	        }catch (IOException e){
     	        	e.printStackTrace();
     	        }
     
     		 }	
     
     	}	
     
    }

Discussions similaires

  1. probleme d' affichage date
    Par kanebody dans le forum Requêtes
    Réponses: 1
    Dernier message: 25/08/2009, 22h50
  2. [JFreeChart] probleme d'affichage d'une courbe
    Par rimas2009 dans le forum 2D
    Réponses: 0
    Dernier message: 10/01/2009, 15h58
  3. Réponses: 1
    Dernier message: 24/05/2007, 16h02
  4. Probleme avec affichage de date
    Par Wongmaster dans le forum Access
    Réponses: 27
    Dernier message: 24/12/2004, 20h51

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo