Solved

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

Posted on 2000-04-13
3
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle SQL syntax check  without executing 6 109
Custom Java Application connects to database: Which one of the 20? 4 43
arguments to jar 5 40
hashmap order 17 43
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

730 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