Revision 28434 branches/v2_0_0_prep/applications/appGazetteer/src/org/gvsig/gazetteer/ui/search/SearchUpperPanel.java
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 |
|
... | ... | |
162 | 163 |
areaCheckBox.setText(Messages.getText("restrictArea")); |
163 | 164 |
resizeButton.setSize(new Dimension(CatalogConstants.RESIZE_WINDOW_BUTTON_SIZE, |
164 | 165 |
CatalogConstants.RESIZE_WINDOW_BUTTON_SIZE)); |
165 |
setDownIcon(); |
|
166 | 166 |
} |
167 | 167 |
|
168 | 168 |
/** |
... | ... | |
176 | 176 |
} |
177 | 177 |
|
178 | 178 |
/** |
179 |
* Sets the up triangle icon (to minimize) |
|
180 |
*/ |
|
181 |
public void setUpIcon() { |
|
182 |
resizeButton.setIcon(new ImageIcon("./gvSIG/extensiones/es.gva.cit.gvsig.catalogClient/images/up.png")); |
|
183 |
} |
|
184 |
|
|
185 |
/** |
|
186 | 179 |
* Sets the down triangle icon (to maximize) |
187 | 180 |
*/ |
188 |
public void setDownIcon() {
|
|
189 |
resizeButton.setIcon(new ImageIcon("./gvSIG/extensiones/es.gva.cit.gvsig.catalogClient/images/down.png"));
|
|
181 |
public void setIcon(Icon icon) {
|
|
182 |
resizeButton.setIcon(icon);
|
|
190 | 183 |
} |
191 | 184 |
|
192 | 185 |
/** |
Also available in: Unified diff