Revision 28434 branches/v2_0_0_prep/applications/appCatalog/src/org/gvsig/catalog/ui/search/SearchUpperPanel.java

View differences:

SearchUpperPanel.java
43 43
import java.awt.Dimension;
44 44
import java.awt.event.ActionListener;
45 45

  
46
import javax.swing.Icon;
46 47
import javax.swing.ImageIcon;
47 48
import javax.swing.JPanel;
48 49

  
......
216 217
		titleLabel.setText(Messages.getText("title"));
217 218
		areaCheckBox.setText(Messages.getText("restrictArea"));
218 219
		resizeButton.setPreferredSize(new Dimension(CatalogConstants.RESIZE_WINDOW_BUTTON_SIZE, 
219
				CatalogConstants.RESIZE_WINDOW_BUTTON_SIZE));
220
		setDownIcon();
220
				CatalogConstants.RESIZE_WINDOW_BUTTON_SIZE));		
221 221
	}
222 222

  
223 223
	/**
......
231 231
	}
232 232

  
233 233
	/**
234
	 * Sets the up triangle icon (to minimize)
235
	 */
236
	public void setUpIcon() {        
237
		resizeButton.setIcon(new ImageIcon("./gvSIG/extensiones/es.gva.cit.gvsig.catalogClient/images/up.png"));
238
	} 
239

  
240
	/**
241 234
	 * Sets the down triangle icon (to maximize)
242 235
	 */
243
	public void setDownIcon() {        
244
		resizeButton.setIcon(new ImageIcon("./gvSIG/extensiones/es.gva.cit.gvsig.catalogClient/images/down.png"));
245
	
236
	public void setIcon(Icon icon) {        
237
		resizeButton.setIcon(icon);	
246 238
	} 
247 239
	
248 240
	/**

Also available in: Unified diff