The multi-line label sample displays the multi-line label using the JFMultiLineLabel class.
The multi-line label sample uses the following classes:
JFMultiLineLabel
JFFieldString
JFCheckList
JFGroupbox
Figure 1.15 Multi-line label sample
Operation method
JFMultiLineLabel
Multi-line label display field
Text
Specify the contents of multi-line label.
Horizontal alignment
Specify the horizontal-direction position when displaying the multi-line label. Specifiable positions are as follows:
Display positions: Left/Center/Right
Vertical alignment
Specify the vertical-direction position when displaying the multi-line label. Specifiable positions are as follows:
Display positions: Top/Center/Bottom
Line pitch
Specify the line spacing when displaying the multi-line label.
Property
The item containing a check in the check box is enabled.
Word Wrap: Wraps words.
Auto Run: Wraps data automatically.
Equality: Displays data equally.
Source codes
Multi-line label sample:"Sample Storage Destinations"/jfmultilinelabel/JFMultiLineLabelSample.java