The image button sample displays only the image, only the label, or both the image and the label using the JFImageButton class.
The image button sample uses the following classes:
JFImageButton
JFFieldString
JFChoice
Figure 1.13 Image button sample
Operation method
JFImageButton
Displays the image button.
File name
Specify the file name of the image to be displayed with Choice. If the "Button indication mode" is a "Label," the file name is not displayed.
Label
Specify the character string to be displayed as a label. If the "Button indication mode" is an "Image," the label is not displayed.
Button indication mode
Specify how to display the image button with Choice.
Image&Label: The image and label are displayed.
Image: Only the image is displayed.
Label: Only the label is displayed.
Source codes
Image button sample:"Sample Storage Destinations"/jfimagebutton/JFImageButtonSample.java