Solved

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

Posted on 2000-04-13
3
266 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countAbc challenge 9 49
topping2 challenge 13 61
Checkbox and ListView in Android Layout 4 39
Java - Why doesn't this JFrame work 3 18
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now