Conventions
This book follows certain conventions for font usage, property tables, and class diagrams. Understanding these conventions up-front makes it easier to use this book.
This book uses the following font conventions:
- Italic
Used for filenames, file extensions, URLs, application names, emphasis, and new terms when they are first introduced
Constant widthUsed for Java class names, functions, variables, components, properties, data types, events, and snippets of code that appear in text
Constant width boldUsed for commands you enter at the command line and to highlight new code inserted in a running example
Constant width italicUsed to annotate output
Tip
This icon designates a note, which is an important aside to the nearby text.
Warning
This icon designates a warning relating to the nearby text.
Properties Tables
Swing components are all JavaBeans. Properties provide a
powerful way to work with JavaBeans, so we use tables throughout the book to present lists of properties.
Table P-3 is an example
from the hypothetical JFoo class
that shows how we use these tables.
Table P-3. Properties of the fictional JFoo class
Property | Data type | get | is | set | Default value |
|---|---|---|---|---|---|
| | · | · | · | |
bbound, ooverridden, 1.4since 1.4 See also properties from the JComponent class (Table 3-6). |
Properties tables tell you the data type; whether it has is, get, and set methods; and its default value, if any. Footnotes to the properties tables tell you, among other things, whether a property is ...