Article View: borland.public.jbuilder.java.swing
Article #9001Re: Jtextfield problem
From: Paul Furbacher [TeamB]
Date: Tue, 30 May 2000 00:00
Date: Tue, 30 May 2000 00:00
31 lines
2200 bytes
2200 bytes
Sven Goetgeluck wrote: > > Finaly found the solution to this annoying problem > > thanks a lot both Paul and John to help me with this till the end > you want to see how the endresult is ??? Just curious about a number of points: 1. Did you implement some kind of "acceleration" -- when the user holds either of the buttons down for an extended length of time, do you change the value at a faster pace and in larger blocks? I played around with this, and it was pretty easy to implement. The "Adjustable" interface came in handy because it defined a "block" increment property. Using a timer and the block increment value, you can have fun watching the value zoom up or down. 2. Did you provide a way to bound the values -- upper and lower limits to the value -- and range-checking of the value a user sets by entering text? 3. Did you implement a NumericDocument by extending PlainDocument so that only characters 0 - 9 are acceptable input? If so, I'd say you have a mighty fine component. Reminds me of the numeric input control in LabVIEW, a completely graphical programming environment. Paul Furbacher (TeamB)
Technical Details
Message-ID:
<39340AB9.47948B3D@home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3921af12@dnews> <39230C94.3B09A3A0@home.com> <39242302@dnews> <MPG.138e6cabc7cff616989936@forums.borland.com> <39250aa2@dnews> <MPG.139148a8c31034b098993c@forums.borland.com> <392A7C85.7D72C823@officeline.be> <MPG.139505deb9177169989947@forums.borland.com> <392BEFE0.6249F1E8@officeline.be> <392C4CAD.2C8B800C@home.com> <392c5d2d@dnews> <MPG.1396a443467bdd02989954@forums.borland.com> <392D3672.C45A6D1F@home.com> <392d8347@dnews> <392E038F.9915280A@home.com> <392eb53d@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e3d8a7969574fa02 X-Google-Attributes: gid111d45,public From: "Paul Furbacher [TeamB]" <pnf@home.com> Subject: Re: Jtextfield problem Date: 2000/05/30 Message-ID: <39340AB9.47948B3D@home.com> X-Deja-AN: 629117168 Content-Transfer-Encoding: 7bit References: <3921af12@dnews> <39230C94.3B09A3A0@home.com> <39242302@dnews> <MPG.138e6cabc7cff616989936@forums.borland.com> <39250aa2@dnews> <MPG.139148a8c31034b098993c@forums.borland.com> <392A7C85.7D72C823@officeline.be> <MPG.139505deb9177169989947@forums.borland.com> <392BEFE0.6249F1E8@officeline.be> <392C4CAD.2C8B800C@home.com> <392c5d2d@dnews> <MPG.1396a443467bdd02989954@forums.borland.com> <392D3672.C45A6D1F@home.com> <392d8347@dnews> <392E038F.9915280A@home.com> <392eb53d@dnews> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii Organization: Reverse Alchemy, Inc. Mime-Version: 1.0 Reply-To: pnf@home.com Newsgroups: borland.public.jbuilder.java.swing