Revision 6489 trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/convexhull/gui/GeoProcessingConvexHullPanel.java

View differences:

GeoProcessingConvexHullPanel.java
45 45
 *
46 46
 * $Id$
47 47
 * $Log$
48
 * Revision 1.2  2006-06-29 17:32:10  azabala
48
 * Revision 1.3  2006-07-21 09:10:34  azabala
49
 * fixed bug 608: user doesnt enter any result file to the geoprocess panel
50
 *
51
 * Revision 1.2  2006/06/29 17:32:10  azabala
49 52
 * result layer selection is congruent with AbstractGeoprocessPanel
50 53
 *
51 54
 * Revision 1.1  2006/06/20 18:20:45  azabala
......
104 107
	private static final long serialVersionUID = 1L;
105 108
    private JLabel jLabel = null;
106 109
	private JCheckBox selectedOnlyCheckbox = null;
107

  
108
	private JTextField fileNameResultTextField = null;
109 110
	private JButton openFileButton = null;
110 111
	private ViewInfo viewInfo;
111 112
	private JPanel resultLayerPanel = null;
......
195 196
	 */    
196 197
	public JTextField getFileNameResultTextField() {
197 198
		if (fileNameResultTextField == null) {
198
			fileNameResultTextField = new JTextField();
199
			fileNameResultTextField.setBounds(new java.awt.Rectangle(135,11,169,21));
199
			super.getFileNameResultTextField().
200
				setBounds(new java.awt.Rectangle(135,11,169,21));
200 201
		}
201 202
		return fileNameResultTextField;
202 203
	}
......
219 220
		return openFileButton;
220 221
	}
221 222
	
222
	public File getOutputFile() {
223
		String fileName = getFileNameResultTextField().getText();
224
		if(! fileName.endsWith(".shp")){
225
			if(! fileName.endsWith("."))
226
				fileName += ".";
227
			fileName += "shp";
228
		}
229
		return new File(fileName);
230
    }
231
    
232
    
233 223
    public void openResultFile() {
234 224
		JFileChooser jfc = new JFileChooser();
235 225
        jfc.addChoosableFileFilter(new GenericFileFilter("shp",

Also available in: Unified diff