Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4988
| From | Fred <fred.l.kleinschmidt@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Setting extent in JSlider model |
| Date | 2012-02-03 12:35 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <827e3c5b-e403-43b5-aaf5-c15e50dd719a@3g2000pbd.googlegroups.com> (permalink) |
How can I set how much a slider will change when the user hits the PageUp of PageDown key, and when the user clicks in the slider's trough? The javadoc for JSlider's model (BoundedRangeModel) setExtent() method states: When used with a slider, the extent determines how much the value can "jump", for example when the user presses PgUp or PgDn. However, setExtent() seems to have no effect. When I use the PgUp or PgDn key, the value always changes 10% of the range regardless of the value I request for extent. As for clicking in the trough, metal L&F always seems to increment (or decrement) the value by one, and for Nimbus it is the same as PgUp/ PgDn. -- FredK
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar
Setting extent in JSlider model Fred <fred.l.kleinschmidt@gmail.com> - 2012-02-03 12:35 -0800
Re: Setting extent in JSlider model Knute Johnson <nospam@knutejohnson.com> - 2012-02-07 10:24 -0800
Re: Setting extent in JSlider model "John B. Matthews" <nospam@nospam.invalid> - 2012-02-07 15:23 -0500
csiph-web