Solved

Need "e.getValueIsAdjusting()" for JSlider (it does not have it!!)

Posted on 2000-04-13
3
270 Views
Last Modified: 2008-03-03
Java App using Java 1.2 (including Swing)
NT 4.0 + SP6


I'm using a JSlider to increase/decrease a number of threads.  The problem is I don't want to change the count of the threads until the user has finished adjusting the slider (by lifting her finger off the mouse button).  

Currently, I'm having to adjust the threads for every single Slider value change (as the user is moving the cursor) and that's causing too many problems and delays.

How can I have the getValueIsAdjusting() (such as the one found in ListSelectionEvent as an example).

Thank you
0
Comment
Question by:bustany
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
heyhey_ earned 75 total points
ID: 2714884
hmmmm



- Class JSlider -

public boolean getValueIsAdjusting()

True if the slider knob is being dragged.

Returns:

the value of the models valueIsAdjusting property


0
 

Author Comment

by:bustany
ID: 2716726
heyhey,

i don't know how i overlooked this!!!!

i've been away from java for some time and was getting rusty.  

more difficult questions to follow...

thanks for the response.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2718703
thanks for the points :)

get a nice searchable WinHelp Java help from
http://www.confluent.fr/javadoc

:)
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java DateChooser? 3 36
type mismatch (Object[] to double[] 4 24
servlet example 17 31
hibernate jars 4 29
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question