Java Reference
In-Depth Information
Table 12-6.
JProgressBar UIResource Elements (Continued)
Property String
Object Type
ProgressBar.highlight
Color
ProgressBar.horizontalSize
Dimension
ProgressBar.repaintInterval
Integer
ProgressBar.selectionBackground
Color
ProgressBar.selectionForeground
Color
ProgressBar.shadow
Color
ProgressBar.verticalSize
Dimension
ProgressBarUI
String
Figure 12-15.
JProgressBar under different look and feel types
JTextField Class and BoundedRangeModel
Interface
The
JTextField
component is not technically a bounded-range component, but nevertheless,
it uses
BoundedRangeModel
. Built inside the
JTextField
is a scrollable area used when the width
of the component's contents exceeds its visible horizontal space. A
BoundedRangeModel
controls
this scrolling area. You'll look at
JTextField
in more depth in Chapter 15. Here, you can see