Revision 9793 trunk/libraries/libUI/src/org/gvsig/gui/beans/textBoxWithCalendar/JCalendarDatePanel.java

View differences:

JCalendarDatePanel.java
205 205
		this.getJCalendarDateDialog().setModal(b);
206 206
	}
207 207
	
208
	/**
209
	 * Sets new size for the inner JButton
210
	 * 
211
	 * @param width (the new Width for the button)
212
	 * @param height (the new Height for the button)
208
	/*
209
	 *  (non-Javadoc)
210
	 * @see javax.swing.JComponent#setPreferredSize(java.awt.Dimension)
213 211
	 */
214
	public void setSizeResize(int width, int height) {
215
		this.setPreferredSize(new Dimension(width, height));
212
	public void setPreferredSize(Dimension d) {
213
		super.setPreferredSize(d);
214
		getJButton().setPreferredSize(d);
216 215
	}
216

  
217
	/*
218
	 *  (non-Javadoc)
219
	 * @see java.awt.Component#setSize(int, int)
220
	 */
221
	public void setSize(int width, int height) {
222
		super.setSize(width, height);
223
		getJButton().setSize(width, height);		
224
	}
217 225
	
226
	/*
227
	 *  (non-Javadoc)
228
	 * @see java.awt.Component#setSize(java.awt.Dimension)
229
	 */
230
	public void setSize(Dimension d) {
231
		super.setSize(d);
232
		getJButton().setSize(d);		
233
	}
234
	
218 235
	/**
219 236
	 * Adds a component listener for the inner JDialog that cointins the calendar interface
220 237
	 * 

Also available in: Unified diff