Revision 29217

View differences:

branches/v2_0_0_prep/extensions/extNormalization/src/org/gvsig/normalization/gui/NormalizationPanelController.java
559 559
		int contador = 0;		
560 560
		while (it.hasNext()) {
561 561
			Feature feature = (Feature) it.next();
562
			if(contador)
563
			
562
			if(contador<SAMPLES){
563
				String sample = feature.get(selectedField).toString();
564
				samples[contador] = sample;
565
			}			
564 566
		}
565 567
		
566
			samples = this.controller.getSamplesTable();
567
		
568
		int size = samples.length;
569

  
570
		Object[][] data = new Object[size][1];
571

  
572
		for (int i = 0; i < size; i++) {
568
		Object[][] data = new Object[samples.length][1];
569
		for (int i = 0; i < samples.length; i++) {
573 570
			data[i][0] = samples[i];
574 571
		}
575
		DefaultTableModel dtm1 = null;
576
		
577
			dtm1 = new DefaultTableModel(data, new String[] { this.controller
572
		DefaultTableModel tablemodel = new DefaultTableModel(data, new String[] { this.controller
578 573
					.getFieldToNormalize() }) {
579 574

  
580 575
				private static final long serialVersionUID = -7429493540158414622L;
......
588 583
			dtm1 = new DefaultTableModel(data, names);
589 584
		}
590 585

  
591
		return dtm1;
586
		return tablemodel;
592 587
	}
593 588

  
594 589
}

Also available in: Unified diff