Home
Java
2D Graphics GUI
3D
Advanced Graphics
Ant
Apache Common
Chart
Class
Collections Data Structure
Data Type
Database SQL JDBC
Design Pattern
Development Class
EJB3
Email
Event
File Input Output
Game
Generics
GWT
Hibernate
I18N
J2EE
J2ME
JavaFX
JDK 6
JDK 7
JNDI LDAP
JPA
JSP
JSTL
Language Basics
Network Protocol
PDF RTF
Reflection
Regular Expressions
Scripting
Security
Servlets
Spring
Swing Components
Swing JFC
SWT JFace Eclipse
Threads
Tiny Application
Velocity
Web Services SOA
XML
Slider « Swing JFC « Java
Java
Swing JFC
Slider
1.
Creating a JSlider Component
2.
Create a horizontal slider with custom min, max, and value
3.
Create a vertical slider with min=0, max=100, value=50
4.
Create a vertical slider with custom min, max, and value
5.
Make the horizontal slider move right-to-left
6.
Make it vertical and move bottom-to-top
7.
Make it vertical and move top-to-bottom
8.
Get the extent
9.
Getting and Setting the Values of a JSlider Component
10.
Drawing with Swing, using a JSlider
11.
Using progress bars and sliders
12.
A slider with tick marks and labels
13.
An example of JSlider with default labels
14.
Set minor tick marks every 5 units
15.
Set major tick marks every 25 units
16.
Slider Sample
17.
JSlider Sample 2
18.
Slider ChangeListener
19.
Inverted Sliders
20.
Slider change action listener
21.
Date slider
22.
Tick Sliders
23.
Scroll Slider
24.
Text Slider
25.
Change the minimum value
26.
Change the maximum value
27.
Set the extent
28.
Move the slider by a fixed amount: the extent.
29.
Set all the values at once by using the model
30.
Set the value; the new value will be forced into the bar's range
31.
Listening for Value Changes in a JSlider Component
32.
Constraining JSlider Component Values to Tick Marks
33.
Determine if currently snapping to tick marks
34.
Snap to tick marks
35.
Set to a spot between tick marks; the value moves to closest tick mark
36.
Determine if currently painting labels
37.
Showing Tick Marks on a JSlider Component
38.
Show tick marks
39.
The slider allows you to use an arbitrary label at any particular major tick mark.
40.
Showing Tick-Mark Labels on a JSlider Component
41.
Hide the track
42.
Sample Sliders
43.
A frame with many sliders and a text field to show slider values