The component sample enables common component functions such as tool tip display, pop-up menu display, and gridline specification using the JFComponent class and JFContainer class.
The component sample uses the following classes:
JFMultiLineLabel
JFFieldString
JFFieldLong
JFFieldFilled
JFImageButton
JFCheckList
JFTableView
JFListView
JFTree
JFCalendarView
JFTabPanel
JFSlider
JFSpinButton
JFPanel
Figure 1.2 Component sample
Operation method
Items checked with the checklist (tool tip/pop-up menu) are enabled.
Tooltip
Moving the mouse cursor to the component displays the tool tip.
Pop-up menu
Clicking the right mouse button on the component displays the pop-up menu (Properties can be set).
Setting properties
Selecting the command (property) in the pop-up menu changes the foreground color, background color, and gridlines.
Figure 1.3 Property setup dialog
The foreground color/background color of gridlines appears only when flatbed ("FLAT" is selected) is selected as the type of gridlines in the [Property Setup] dialog.
With the JFCalendarView, changing the foreground color/background color changes the foreground color/background color of the selected date.
Source codes
Component sample:"Sample Storage Destinations"/jfcomponent/JFComponentSample.java
Property setup dialog:"Sample Storage Destinations"/jfcomponent/PropertyDialog.java