Revision 23266

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/AttrInTableLabeling.java
42 42

  
43 43
import java.awt.Dimension;
44 44
import java.awt.FlowLayout;
45
import java.awt.Font;
45 46
import java.awt.event.ActionEvent;
46 47
import java.sql.Types;
47 48
import java.util.ArrayList;
......
211 212
	}
212 213

  
213 214
	public void actionPerformed(ActionEvent e) {
214
		// TODO Auto-generated method stub
215
		throw new Error("Not yet implemented!");
216 215

  
217 216
	}
218 217

  
......
240 239

  
241 240
		strategy.setUnit(getCmbUnits().getSelectedUnitIndex());
242 241
		strategy.setColorFont(colorChooser.getColor());
243
		strategy.setFont(cmbFonts.getFont());
242

  
243
		Font myFont = new Font((String) cmbFonts.getSelectedItem(),
244
                Font.PLAIN,
245
                15);
246

  
247
		strategy.setFont(myFont);
244 248
		return strategy;
245 249
	}
246 250

  
......
281 285

  
282 286
		if (layer.getLabelingStrategy() instanceof AttrInTableLabelingStrategy) {
283 287
			AttrInTableLabelingStrategy aux = (AttrInTableLabelingStrategy) layer.getLabelingStrategy();
284
			cmbFonts.setFont(aux.getFont());
288
			cmbFonts.setSelectedItem(aux.getFont().getName());
285 289
		}
286 290
	}
287 291

  

Also available in: Unified diff