Solved

JSlider

Posted on 1998-09-04
1
186 Views
Last Modified: 2010-05-18
I am using JSliders to monitor capacity levels.  I want the slider to fill with color as it moves(ex: from 0-50, color is only filled up to 50.  Is this possible, a method?  or sample program.
0
Comment
Question by:spowers
1 Comment
 
LVL 3

Accepted Solution

by:
sailwind earned 50 total points
ID: 1223601
You can use JProgressBar which fills up with color as it goes. You can
limit it going to 50 by limiting your ticks to no more than 50.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Basic Java Case or If-Else statement... 3 50
Way to decrease size of apk file 9 67
jboss wildfly 10.1 10 87
JAVA API design with micro service cloud in mind 1 16
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

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