Java Reference
In-Depth Information
Table 1-3. Mapping of Swing Components to Chapters in This Topic (Continued)
Swing Component
Chapter
JRootPane
8
JScrollBar
12
JScrollPane
11
JSeparator
6
JSlider
12
JSpinner
14
JSplitPane
11
JTabbedPane
11
JTable
18
JTextArea
15
JTextField
15
JTextPane
15
JToggleButton
5
JToolBar
6
JToolTip
4
JTree
17
JViewport
11
JWindow
8
In addition to information about using the different components, the following chapters
feature a table for each component that lists the JavaBeans properties defined by that compo-
nent. Each table notes whether a property has a setter ( set PropertyName ( newValue ) ), a getter
( get PropertyName () ), or an is PropertyName () method defined by the class, and whether a
property is bound (you can listen for a Property ChangeEvent ). In these property tables, inherited
properties aren't listed, so even though a property for a component is listed as write-only, the
parent class might still provide a getter method. As an example, Table 1-4 shows the property
table for the JScrollBar component.
Table 1-4. JScrollBar Properties
Property Name
Data Type
Access
accessibleContext
AccessibleContext
Read-only
adjustmentListeners
AdjustmentListener[ ]
Read-only
blockIncrement
int
Read-write bound
enabled
boolean
Write-only
 
Search WWH ::




Custom Search