/lib/docs/api/com/toedter/components/JSpinField.html
HTML | 981 lines | 868 code | 88 blank | 25 comment | 0 complexity | cea708e3185891782873620ffaafff81 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.5.0_06) on Sun Jun 04 15:41:17 CEST 2006 --> 6<TITLE> 7JSpinField (JCalendar API) 8</TITLE> 9 10<META NAME="keywords" CONTENT="com.toedter.components.JSpinField class"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 parent.document.title="JSpinField (JCalendar API)"; 18} 19</SCRIPT> 20<NOSCRIPT> 21</NOSCRIPT> 22 23</HEAD> 24 25<BODY BGCOLOR="white" onload="windowTitle();"> 26 27 28<!-- ========= START OF TOP NAVBAR ======= --> 29<A NAME="navbar_top"><!-- --></A> 30<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 32<TR> 33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 34<A NAME="navbar_top_firstrow"><!-- --></A> 35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 36 <TR ALIGN="center" VALIGN="top"> 37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 44 </TR> 45</TABLE> 46</TD> 47<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 48</EM> 49</TD> 50</TR> 51 52<TR> 53<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 54 <A HREF="../../../com/toedter/components/JLocaleChooserBeanInfo.html" title="class in com.toedter.components"><B>PREV CLASS</B></A> 55 <A HREF="../../../com/toedter/components/JSpinFieldBeanInfo.html" title="class in com.toedter.components"><B>NEXT CLASS</B></A></FONT></TD> 56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 57 <A HREF="../../../index.html?com/toedter/components/JSpinField.html" target="_top"><B>FRAMES</B></A> 58 <A HREF="JSpinField.html" target="_top"><B>NO FRAMES</B></A> 59 <SCRIPT type="text/javascript"> 60 <!-- 61 if(window==top) { 62 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 63 } 64 //--> 65</SCRIPT> 66<NOSCRIPT> 67 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 68</NOSCRIPT> 69 70 71</FONT></TD> 72</TR> 73<TR> 74<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 75 SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 77DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 78</TR> 79</TABLE> 80<A NAME="skip-navbar_top"></A> 81<!-- ========= END OF TOP NAVBAR ========= --> 82 83<HR> 84<!-- ======== START OF CLASS DATA ======== --> 85<H2> 86<FONT SIZE="-1"> 87com.toedter.components</FONT> 88<BR> 89Class JSpinField</H2> 90<PRE> 91java.lang.Object 92 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Component 93 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Container 94 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JComponent 95 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JPanel 96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.toedter.components.JSpinField</B> 97</PRE> 98<DL> 99<DT><B>All Implemented Interfaces:</B> <DD>java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.CaretListener, javax.swing.event.ChangeListener</DD> 100</DL> 101<DL> 102<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/toedter/calendar/JYearChooser.html" title="class in com.toedter.calendar">JYearChooser</A></DD> 103</DL> 104<HR> 105<DL> 106<DT><PRE>public class <B>JSpinField</B><DT>extends javax.swing.JPanel<DT>implements javax.swing.event.ChangeListener, javax.swing.event.CaretListener, java.awt.event.ActionListener, java.awt.event.FocusListener</DL> 107</PRE> 108 109<P> 110JSpinField is a numeric field with 2 spin buttons to increase or decrease the 111 value. It has the same interface as the "old" JSpinField but uses a JSpinner 112 internally (since J2SE SDK 1.4) rather than a scrollbar for emulating the 113 spin buttons. 114<P> 115 116<P> 117<DL> 118<DT><B>Version:</B></DT> 119 <DD>$LastChangedRevision: 85 $, $LastChangedDate: 2006-04-28 13:50:52 +0200 (Fr, 28 Apr 2006) $</DD> 120<DT><B>Author:</B></DT> 121 <DD>Kai Toedter</DD> 122<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#com.toedter.components.JSpinField">Serialized Form</A></DL> 123<HR> 124 125<P> 126<!-- ======== NESTED CLASS SUMMARY ======== --> 127 128<A NAME="nested_class_summary"><!-- --></A> 129<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 130<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 131<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 132<B>Nested Class Summary</B></FONT></TH> 133</TR> 134</TABLE> 135 <A NAME="nested_classes_inherited_from_class_javax.swing.JPanel"><!-- --></A> 136<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 137<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 138<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JPanel</B></TH> 139</TR> 140<TR BGCOLOR="white" CLASS="TableRowColor"> 141<TD><CODE>javax.swing.JPanel.AccessibleJPanel</CODE></TD> 142</TR> 143</TABLE> 144 145<A NAME="nested_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A> 146<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 147<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 148<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JComponent</B></TH> 149</TR> 150<TR BGCOLOR="white" CLASS="TableRowColor"> 151<TD><CODE>javax.swing.JComponent.AccessibleJComponent</CODE></TD> 152</TR> 153</TABLE> 154 155<A NAME="nested_classes_inherited_from_class_java.awt.Container"><!-- --></A> 156<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 157<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 158<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Container</B></TH> 159</TR> 160<TR BGCOLOR="white" CLASS="TableRowColor"> 161<TD><CODE>java.awt.Container.AccessibleAWTContainer</CODE></TD> 162</TR> 163</TABLE> 164 165<A NAME="nested_classes_inherited_from_class_java.awt.Component"><!-- --></A> 166<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 167<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 168<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Component</B></TH> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD><CODE>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</CODE></TD> 172</TR> 173</TABLE> 174 175<!-- =========== FIELD SUMMARY =========== --> 176 177<A NAME="field_summary"><!-- --></A> 178<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 179<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 180<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 181<B>Field Summary</B></FONT></TH> 182</TR> 183<TR BGCOLOR="white" CLASS="TableRowColor"> 184<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 185<CODE>protected java.awt.Color</CODE></FONT></TD> 186<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#darkGreen">darkGreen</A></B></CODE> 187 188<BR> 189 </TD> 190</TR> 191<TR BGCOLOR="white" CLASS="TableRowColor"> 192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 193<CODE>protected int</CODE></FONT></TD> 194<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#max">max</A></B></CODE> 195 196<BR> 197 </TD> 198</TR> 199<TR BGCOLOR="white" CLASS="TableRowColor"> 200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 201<CODE>protected int</CODE></FONT></TD> 202<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#min">min</A></B></CODE> 203 204<BR> 205 </TD> 206</TR> 207<TR BGCOLOR="white" CLASS="TableRowColor"> 208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 209<CODE>protected javax.swing.JSpinner</CODE></FONT></TD> 210<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#spinner">spinner</A></B></CODE> 211 212<BR> 213 </TD> 214</TR> 215<TR BGCOLOR="white" CLASS="TableRowColor"> 216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 217<CODE>protected javax.swing.JTextField</CODE></FONT></TD> 218<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#textField">textField</A></B></CODE> 219 220<BR> 221 the text (number) field</TD> 222</TR> 223<TR BGCOLOR="white" CLASS="TableRowColor"> 224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 225<CODE>protected int</CODE></FONT></TD> 226<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#value">value</A></B></CODE> 227 228<BR> 229 </TD> 230</TR> 231</TABLE> 232 <A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A> 233<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 234<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 235<TH ALIGN="left"><B>Fields inherited from class javax.swing.JComponent</B></TH> 236</TR> 237<TR BGCOLOR="white" CLASS="TableRowColor"> 238<TD><CODE>accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</CODE></TD> 239</TR> 240</TABLE> 241 <A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A> 242<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 243<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 244<TH ALIGN="left"><B>Fields inherited from class java.awt.Component</B></TH> 245</TR> 246<TR BGCOLOR="white" CLASS="TableRowColor"> 247<TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD> 248</TR> 249</TABLE> 250 <A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A> 251<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 252<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 253<TH ALIGN="left"><B>Fields inherited from interface java.awt.image.ImageObserver</B></TH> 254</TR> 255<TR BGCOLOR="white" CLASS="TableRowColor"> 256<TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD> 257</TR> 258</TABLE> 259 260<!-- ======== CONSTRUCTOR SUMMARY ======== --> 261 262<A NAME="constructor_summary"><!-- --></A> 263<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 264<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 265<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 266<B>Constructor Summary</B></FONT></TH> 267</TR> 268<TR BGCOLOR="white" CLASS="TableRowColor"> 269<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#JSpinField()">JSpinField</A></B>()</CODE> 270 271<BR> 272 Default JSpinField constructor.</TD> 273</TR> 274<TR BGCOLOR="white" CLASS="TableRowColor"> 275<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#JSpinField(int, int)">JSpinField</A></B>(int min, 276 int max)</CODE> 277 278<BR> 279 JSpinField constructor with given minimum and maximum vaues and initial 280 value 0.</TD> 281</TR> 282</TABLE> 283 284<!-- ========== METHOD SUMMARY =========== --> 285 286<A NAME="method_summary"><!-- --></A> 287<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 288<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 289<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 290<B>Method Summary</B></FONT></TH> 291</TR> 292<TR BGCOLOR="white" CLASS="TableRowColor"> 293<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 294<CODE> void</CODE></FONT></TD> 295<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#actionPerformed(java.awt.event.ActionEvent)">actionPerformed</A></B>(java.awt.event.ActionEvent e)</CODE> 296 297<BR> 298 After any user input, the value of the textfield is proofed.</TD> 299</TR> 300<TR BGCOLOR="white" CLASS="TableRowColor"> 301<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 302<CODE> void</CODE></FONT></TD> 303<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#adjustWidthToMaximumValue()">adjustWidthToMaximumValue</A></B>()</CODE> 304 305<BR> 306 </TD> 307</TR> 308<TR BGCOLOR="white" CLASS="TableRowColor"> 309<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 310<CODE> void</CODE></FONT></TD> 311<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#caretUpdate(javax.swing.event.CaretEvent)">caretUpdate</A></B>(javax.swing.event.CaretEvent e)</CODE> 312 313<BR> 314 After any user input, the value of the textfield is proofed.</TD> 315</TR> 316<TR BGCOLOR="white" CLASS="TableRowColor"> 317<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 318<CODE> void</CODE></FONT></TD> 319<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#focusGained(java.awt.event.FocusEvent)">focusGained</A></B>(java.awt.event.FocusEvent e)</CODE> 320 321<BR> 322 </TD> 323</TR> 324<TR BGCOLOR="white" CLASS="TableRowColor"> 325<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 326<CODE> void</CODE></FONT></TD> 327<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#focusLost(java.awt.event.FocusEvent)">focusLost</A></B>(java.awt.event.FocusEvent e)</CODE> 328 329<BR> 330 The value of the text field is checked against a valid (green) value.</TD> 331</TR> 332<TR BGCOLOR="white" CLASS="TableRowColor"> 333<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 334<CODE> int</CODE></FONT></TD> 335<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getMaximum()">getMaximum</A></B>()</CODE> 336 337<BR> 338 Returns the maximum value.</TD> 339</TR> 340<TR BGCOLOR="white" CLASS="TableRowColor"> 341<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 342<CODE> int</CODE></FONT></TD> 343<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getMinimum()">getMinimum</A></B>()</CODE> 344 345<BR> 346 Returns the minimum value.</TD> 347</TR> 348<TR BGCOLOR="white" CLASS="TableRowColor"> 349<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 350<CODE> java.awt.Component</CODE></FONT></TD> 351<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getSpinner()">getSpinner</A></B>()</CODE> 352 353<BR> 354 Returns the year chooser's spinner (which allow the focus to be set to 355 it).</TD> 356</TR> 357<TR BGCOLOR="white" CLASS="TableRowColor"> 358<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 359<CODE> int</CODE></FONT></TD> 360<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getValue()">getValue</A></B>()</CODE> 361 362<BR> 363 Returns the value.</TD> 364</TR> 365<TR BGCOLOR="white" CLASS="TableRowColor"> 366<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 367<CODE>static void</CODE></FONT></TD> 368<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#main(java.lang.String[])">main</A></B>(java.lang.String[] s)</CODE> 369 370<BR> 371 Creates a JFrame with a JSpinField inside and can be used for testing.</TD> 372</TR> 373<TR BGCOLOR="white" CLASS="TableRowColor"> 374<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 375<CODE> void</CODE></FONT></TD> 376<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setEnabled(boolean)">setEnabled</A></B>(boolean enabled)</CODE> 377 378<BR> 379 Enable or disable the JSpinField.</TD> 380</TR> 381<TR BGCOLOR="white" CLASS="TableRowColor"> 382<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 383<CODE> void</CODE></FONT></TD> 384<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setFont(java.awt.Font)">setFont</A></B>(java.awt.Font font)</CODE> 385 386<BR> 387 Sets the font property.</TD> 388</TR> 389<TR BGCOLOR="white" CLASS="TableRowColor"> 390<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 391<CODE> void</CODE></FONT></TD> 392<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setForeground(java.awt.Color)">setForeground</A></B>(java.awt.Color fg)</CODE> 393 394<BR> 395 Sets the foreground</TD> 396</TR> 397<TR BGCOLOR="white" CLASS="TableRowColor"> 398<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 399<CODE> void</CODE></FONT></TD> 400<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setHorizontalAlignment(int)">setHorizontalAlignment</A></B>(int alignment)</CODE> 401 402<BR> 403 Sets the horizontal alignment of the displayed value.</TD> 404</TR> 405<TR BGCOLOR="white" CLASS="TableRowColor"> 406<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 407<CODE> void</CODE></FONT></TD> 408<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setMaximum(int)">setMaximum</A></B>(int newMaximum)</CODE> 409 410<BR> 411 Sets the maximum value and adjusts the preferred width.</TD> 412</TR> 413<TR BGCOLOR="white" CLASS="TableRowColor"> 414<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 415<CODE> void</CODE></FONT></TD> 416<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setMinimum(int)">setMinimum</A></B>(int newMinimum)</CODE> 417 418<BR> 419 Sets the minimum value.</TD> 420</TR> 421<TR BGCOLOR="white" CLASS="TableRowColor"> 422<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 423<CODE> void</CODE></FONT></TD> 424<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setValue(int)">setValue</A></B>(int newValue)</CODE> 425 426<BR> 427 Sets the value.</TD> 428</TR> 429<TR BGCOLOR="white" CLASS="TableRowColor"> 430<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 431<CODE>protected void</CODE></FONT></TD> 432<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setValue(int, boolean, boolean)">setValue</A></B>(int newValue, 433 boolean updateTextField, 434 boolean firePropertyChange)</CODE> 435 436<BR> 437 Sets the value attribute of the JSpinField object.</TD> 438</TR> 439<TR BGCOLOR="white" CLASS="TableRowColor"> 440<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 441<CODE> void</CODE></FONT></TD> 442<TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#stateChanged(javax.swing.event.ChangeEvent)">stateChanged</A></B>(javax.swing.event.ChangeEvent e)</CODE> 443 444<BR> 445 Is invoked when the spinner model changes</TD> 446</TR> 447</TABLE> 448 <A NAME="methods_inherited_from_class_javax.swing.JPanel"><!-- --></A> 449<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 450<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 451<TH ALIGN="left"><B>Methods inherited from class javax.swing.JPanel</B></TH> 452</TR> 453<TR BGCOLOR="white" CLASS="TableRowColor"> 454<TD><CODE>getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI</CODE></TD> 455</TR> 456</TABLE> 457 <A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A> 458<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 459<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 460<TH ALIGN="left"><B>Methods inherited from class javax.swing.JComponent</B></TH> 461</TR> 462<TR BGCOLOR="white" CLASS="TableRowColor"> 463<TD><CODE>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</CODE></TD> 464</TR> 465</TABLE> 466 <A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A> 467<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 468<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 469<TH ALIGN="left"><B>Methods inherited from class java.awt.Container</B></TH> 470</TR> 471<TR BGCOLOR="white" CLASS="TableRowColor"> 472<TD><CODE>add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree</CODE></TD> 473</TR> 474</TABLE> 475 <A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A> 476<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 477<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 478<TH ALIGN="left"><B>Methods inherited from class java.awt.Component</B></TH> 479</TR> 480<TR BGCOLOR="white" CLASS="TableRowColor"> 481<TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle</CODE></TD> 482</TR> 483</TABLE> 484 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 485<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 486<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 487<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> 488</TR> 489<TR BGCOLOR="white" CLASS="TableRowColor"> 490<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> 491</TR> 492</TABLE> 493 494<P> 495 496<!-- ============ FIELD DETAIL =========== --> 497 498<A NAME="field_detail"><!-- --></A> 499<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 500<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 501<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 502<B>Field Detail</B></FONT></TH> 503</TR> 504</TABLE> 505 506<A NAME="spinner"><!-- --></A><H3> 507spinner</H3> 508<PRE> 509protected javax.swing.JSpinner <B>spinner</B></PRE> 510<DL> 511<DL> 512</DL> 513</DL> 514<HR> 515 516<A NAME="textField"><!-- --></A><H3> 517textField</H3> 518<PRE> 519protected javax.swing.JTextField <B>textField</B></PRE> 520<DL> 521<DD>the text (number) field 522<P> 523<DL> 524</DL> 525</DL> 526<HR> 527 528<A NAME="min"><!-- --></A><H3> 529min</H3> 530<PRE> 531protected int <B>min</B></PRE> 532<DL> 533<DL> 534</DL> 535</DL> 536<HR> 537 538<A NAME="max"><!-- --></A><H3> 539max</H3> 540<PRE> 541protected int <B>max</B></PRE> 542<DL> 543<DL> 544</DL> 545</DL> 546<HR> 547 548<A NAME="value"><!-- --></A><H3> 549value</H3> 550<PRE> 551protected int <B>value</B></PRE> 552<DL> 553<DL> 554</DL> 555</DL> 556<HR> 557 558<A NAME="darkGreen"><!-- --></A><H3> 559darkGreen</H3> 560<PRE> 561protected java.awt.Color <B>darkGreen</B></PRE> 562<DL> 563<DL> 564</DL> 565</DL> 566 567<!-- ========= CONSTRUCTOR DETAIL ======== --> 568 569<A NAME="constructor_detail"><!-- --></A> 570<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 571<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 572<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 573<B>Constructor Detail</B></FONT></TH> 574</TR> 575</TABLE> 576 577<A NAME="JSpinField()"><!-- --></A><H3> 578JSpinField</H3> 579<PRE> 580public <B>JSpinField</B>()</PRE> 581<DL> 582<DD>Default JSpinField constructor. The valid value range is between 583 Integer.MIN_VALUE and Integer.MAX_VALUE. The initial value is 0. 584<P> 585</DL> 586<HR> 587 588<A NAME="JSpinField(int, int)"><!-- --></A><H3> 589JSpinField</H3> 590<PRE> 591public <B>JSpinField</B>(int min, 592 int max)</PRE> 593<DL> 594<DD>JSpinField constructor with given minimum and maximum vaues and initial 595 value 0. 596<P> 597</DL> 598 599<!-- ============ METHOD DETAIL ========== --> 600 601<A NAME="method_detail"><!-- --></A> 602<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 603<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 604<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 605<B>Method Detail</B></FONT></TH> 606</TR> 607</TABLE> 608 609<A NAME="adjustWidthToMaximumValue()"><!-- --></A><H3> 610adjustWidthToMaximumValue</H3> 611<PRE> 612public void <B>adjustWidthToMaximumValue</B>()</PRE> 613<DL> 614<DD><DL> 615</DL> 616</DD> 617<DD><DL> 618</DL> 619</DD> 620</DL> 621<HR> 622 623<A NAME="stateChanged(javax.swing.event.ChangeEvent)"><!-- --></A><H3> 624stateChanged</H3> 625<PRE> 626public void <B>stateChanged</B>(javax.swing.event.ChangeEvent e)</PRE> 627<DL> 628<DD>Is invoked when the spinner model changes 629<P> 630<DD><DL> 631<DT><B>Specified by:</B><DD><CODE>stateChanged</CODE> in interface <CODE>javax.swing.event.ChangeListener</CODE></DL> 632</DD> 633<DD><DL> 634<DT><B>Parameters:</B><DD><CODE>e</CODE> - the ChangeEvent</DL> 635</DD> 636</DL> 637<HR> 638 639<A NAME="setValue(int, boolean, boolean)"><!-- --></A><H3> 640setValue</H3> 641<PRE> 642protected void <B>setValue</B>(int newValue, 643 boolean updateTextField, 644 boolean firePropertyChange)</PRE> 645<DL> 646<DD>Sets the value attribute of the JSpinField object. 647<P> 648<DD><DL> 649</DL> 650</DD> 651<DD><DL> 652<DT><B>Parameters:</B><DD><CODE>newValue</CODE> - The new value<DD><CODE>updateTextField</CODE> - true if text field should be updated</DL> 653</DD> 654</DL> 655<HR> 656 657<A NAME="setValue(int)"><!-- --></A><H3> 658setValue</H3> 659<PRE> 660public void <B>setValue</B>(int newValue)</PRE> 661<DL> 662<DD>Sets the value. This is a bound property. 663<P> 664<DD><DL> 665</DL> 666</DD> 667<DD><DL> 668<DT><B>Parameters:</B><DD><CODE>newValue</CODE> - the new value<DT><B>See Also:</B><DD><A HREF="../../../com/toedter/components/JSpinField.html#getValue()"><CODE>getValue()</CODE></A></DL> 669</DD> 670</DL> 671<HR> 672 673<A NAME="getValue()"><!-- --></A><H3> 674getValue</H3> 675<PRE> 676public int <B>getValue</B>()</PRE> 677<DL> 678<DD>Returns the value. 679<P> 680<DD><DL> 681</DL> 682</DD> 683<DD><DL> 684 685<DT><B>Returns:</B><DD>the value value</DL> 686</DD> 687</DL> 688<HR> 689 690<A NAME="setMinimum(int)"><!-- --></A><H3> 691setMinimum</H3> 692<PRE> 693public void <B>setMinimum</B>(int newMinimum)</PRE> 694<DL> 695<DD>Sets the minimum value. 696<P> 697<DD><DL> 698</DL> 699</DD> 700<DD><DL> 701<DT><B>Parameters:</B><DD><CODE>newMinimum</CODE> - the new minimum value<DT><B>See Also:</B><DD><A HREF="../../../com/toedter/components/JSpinField.html#getMinimum()"><CODE>getMinimum()</CODE></A></DL> 702</DD> 703</DL> 704<HR> 705 706<A NAME="getMinimum()"><!-- --></A><H3> 707getMinimum</H3> 708<PRE> 709public int <B>getMinimum</B>()</PRE> 710<DL> 711<DD>Returns the minimum value. 712<P> 713<DD><DL> 714</DL> 715</DD> 716<DD><DL> 717 718<DT><B>Returns:</B><DD>the minimum value</DL> 719</DD> 720</DL> 721<HR> 722 723<A NAME="setMaximum(int)"><!-- --></A><H3> 724setMaximum</H3> 725<PRE> 726public void <B>setMaximum</B>(int newMaximum)</PRE> 727<DL> 728<DD>Sets the maximum value and adjusts the preferred width. 729<P> 730<DD><DL> 731</DL> 732</DD> 733<DD><DL> 734<DT><B>Parameters:</B><DD><CODE>newMaximum</CODE> - the new maximum value<DT><B>See Also:</B><DD><A HREF="../../../com/toedter/components/JSpinField.html#getMaximum()"><CODE>getMaximum()</CODE></A></DL> 735</DD> 736</DL> 737<HR> 738 739<A NAME="setHorizontalAlignment(int)"><!-- --></A><H3> 740setHorizontalAlignment</H3> 741<PRE> 742public void <B>setHorizontalAlignment</B>(int alignment)</PRE> 743<DL> 744<DD>Sets the horizontal alignment of the displayed value. 745<P> 746<DD><DL> 747</DL> 748</DD> 749<DD><DL> 750<DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the horizontal alignment</DL> 751</DD> 752</DL> 753<HR> 754 755<A NAME="getMaximum()"><!-- --></A><H3> 756getMaximum</H3> 757<PRE> 758public int <B>getMaximum</B>()</PRE> 759<DL> 760<DD>Returns the maximum value. 761<P> 762<DD><DL> 763</DL> 764</DD> 765<DD><DL> 766 767<DT><B>Returns:</B><DD>the maximum value</DL> 768</DD> 769</DL> 770<HR> 771 772<A NAME="setFont(java.awt.Font)"><!-- --></A><H3> 773setFont</H3> 774<PRE> 775public void <B>setFont</B>(java.awt.Font font)</PRE> 776<DL> 777<DD>Sets the font property. 778<P> 779<DD><DL> 780<DT><B>Overrides:</B><DD><CODE>setFont</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> 781</DD> 782<DD><DL> 783<DT><B>Parameters:</B><DD><CODE>font</CODE> - the new font</DL> 784</DD> 785</DL> 786<HR> 787 788<A NAME="setForeground(java.awt.Color)"><!-- --></A><H3> 789setForeground</H3> 790<PRE> 791public void <B>setForeground</B>(java.awt.Color fg)</PRE> 792<DL> 793<DD>Sets the foreground 794<P> 795<DD><DL> 796<DT><B>Overrides:</B><DD><CODE>setForeground</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> 797</DD> 798<DD><DL> 799<DT><B>Parameters:</B><DD><CODE>fg</CODE> - the foreground</DL> 800</DD> 801</DL> 802<HR> 803 804<A NAME="caretUpdate(javax.swing.event.CaretEvent)"><!-- --></A><H3> 805caretUpdate</H3> 806<PRE> 807public void <B>caretUpdate</B>(javax.swing.event.CaretEvent e)</PRE> 808<DL> 809<DD>After any user input, the value of the textfield is proofed. Depending on 810 being an integer, the value is colored green or red. 811<P> 812<DD><DL> 813<DT><B>Specified by:</B><DD><CODE>caretUpdate</CODE> in interface <CODE>javax.swing.event.CaretListener</CODE></DL> 814</DD> 815<DD><DL> 816<DT><B>Parameters:</B><DD><CODE>e</CODE> - the caret event</DL> 817</DD> 818</DL> 819<HR> 820 821<A NAME="actionPerformed(java.awt.event.ActionEvent)"><!-- --></A><H3> 822actionPerformed</H3> 823<PRE> 824public void <B>actionPerformed</B>(java.awt.event.ActionEvent e)</PRE> 825<DL> 826<DD>After any user input, the value of the textfield is proofed. Depending on 827 being an integer, the value is colored green or red. If the textfield is 828 green, the enter key is accepted and the new value is set. 829<P> 830<DD><DL> 831<DT><B>Specified by:</B><DD><CODE>actionPerformed</CODE> in interface <CODE>java.awt.event.ActionListener</CODE></DL> 832</DD> 833<DD><DL> 834<DT><B>Parameters:</B><DD><CODE>e</CODE> - Description of the Parameter</DL> 835</DD> 836</DL> 837<HR> 838 839<A NAME="setEnabled(boolean)"><!-- --></A><H3> 840setEnabled</H3> 841<PRE> 842public void <B>setEnabled</B>(boolean enabled)</PRE> 843<DL> 844<DD>Enable or disable the JSpinField. 845<P> 846<DD><DL> 847<DT><B>Overrides:</B><DD><CODE>setEnabled</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> 848</DD> 849<DD><DL> 850<DT><B>Parameters:</B><DD><CODE>enabled</CODE> - The new enabled value</DL> 851</DD> 852</DL> 853<HR> 854 855<A NAME="getSpinner()"><!-- --></A><H3> 856getSpinner</H3> 857<PRE> 858public java.awt.Component <B>getSpinner</B>()</PRE> 859<DL> 860<DD>Returns the year chooser's spinner (which allow the focus to be set to 861 it). 862<P> 863<DD><DL> 864</DL> 865</DD> 866<DD><DL> 867 868<DT><B>Returns:</B><DD>Component the spinner or null, if the month chooser has no 869 spinner</DL> 870</DD> 871</DL> 872<HR> 873 874<A NAME="main(java.lang.String[])"><!-- --></A><H3> 875main</H3> 876<PRE> 877public static void <B>main</B>(java.lang.String[] s)</PRE> 878<DL> 879<DD>Creates a JFrame with a JSpinField inside and can be used for testing. 880<P> 881<DD><DL> 882</DL> 883</DD> 884<DD><DL> 885<DT><B>Parameters:</B><DD><CODE>s</CODE> - The command line arguments</DL> 886</DD> 887</DL> 888<HR> 889 890<A NAME="focusGained(java.awt.event.FocusEvent)"><!-- --></A><H3> 891focusGained</H3> 892<PRE> 893public void <B>focusGained</B>(java.awt.event.FocusEvent e)</PRE> 894<DL> 895<DD><DL> 896<DT><B>Specified by:</B><DD><CODE>focusGained</CODE> in interface <CODE>java.awt.event.FocusListener</CODE></DL> 897</DD> 898<DD><DL> 899</DL> 900</DD> 901</DL> 902<HR> 903 904<A NAME="focusLost(java.awt.event.FocusEvent)"><!-- --></A><H3> 905focusLost</H3> 906<PRE> 907public void <B>focusLost</B>(java.awt.event.FocusEvent e)</PRE> 908<DL> 909<DD>The value of the text field is checked against a valid (green) value. If 910 valid, the value is set and a property change is fired. 911<P> 912<DD><DL> 913<DT><B>Specified by:</B><DD><CODE>focusLost</CODE> in interface <CODE>java.awt.event.FocusListener</CODE></DL> 914</DD> 915<DD><DL> 916</DL> 917</DD> 918</DL> 919<!-- ========= END OF CLASS DATA ========= --> 920<HR> 921 922 923<!-- ======= START OF BOTTOM NAVBAR ====== --> 924<A NAME="navbar_bottom"><!-- --></A> 925<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 926<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 927<TR> 928<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 929<A NAME="navbar_bottom_firstrow"><!-- --></A> 930<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 931 <TR ALIGN="center" VALIGN="top"> 932 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 933 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 934 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 935 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 936 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 937 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 938 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 939 </TR> 940</TABLE> 941</TD> 942<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 943</EM> 944</TD> 945</TR> 946 947<TR> 948<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 949 <A HREF="../../../com/toedter/components/JLocaleChooserBeanInfo.html" title="class in com.toedter.components"><B>PREV CLASS</B></A> 950 <A HREF="../../../com/toedter/components/JSpinFieldBeanInfo.html" title="class in com.toedter.components"><B>NEXT CLASS</B></A></FONT></TD> 951<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 952 <A HREF="../../../index.html?com/toedter/components/JSpinField.html" target="_top"><B>FRAMES</B></A> 953 <A HREF="JSpinField.html" target="_top"><B>NO FRAMES</B></A> 954 <SCRIPT type="text/javascript"> 955 <!-- 956 if(window==top) { 957 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 958 } 959 //--> 960</SCRIPT> 961<NOSCRIPT> 962 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 963</NOSCRIPT> 964 965 966</FONT></TD> 967</TR> 968<TR> 969<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 970 SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 971<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 972DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 973</TR> 974</TABLE> 975<A NAME="skip-navbar_bottom"></A> 976<!-- ======== END OF BOTTOM NAVBAR ======= --> 977 978<HR> 979Copyright 1999 - 2006 Kai Toedter. 980</BODY> 981</HTML>