The UI Screen Control Tabbed Panel Sample transits the UI Screen and transmits screen data using UI Screen Control Tabbed Panel(JFCTabbedPanel).
This sample can be referenced as a simple sample of the program handling mass screens.
The UI Screen Control Tabbed Panel Sample uses the following classes and interface:
JFCTabbedPanel
JFCEntryPanel
Screen structure
The following screen is just after started this sample.
Figure 2.11 Screen just after started
There are components on this screen.
[Current UI Screen name] label
Displays the current UI Screen name.
[Prevent UI Screen data] label
Displays the previous UI Screen name.
After this sample started and there is no data in the previous UI Screen, the UI Screen name is not displayed.
[Current UI Screen data] label
Displays the current UI Screen name.
If the current UI Screen has no data, the UI Screen data is not displayed.
[Set current UI Screen data] button and [Input the current UI Screen data] text field.
To set the data of the current UI Screen.
To set the data, input any string data on the text field and press the button.
[Screen Transition] button and [Input the UI Screen name to be transited] text field.
To transit a UI Screen.
To transit a UI Screen, input a UI Screen name on the text field and press the button.
[SetImage] button
The Button to set image on the tab of the current UI Screen.
Operation method
The following is how to operate this sample.
Start this sample, and set the image on the tab.
Press the [SetImage] button, then the image is displayed on the tab.
Set the current UI Screen data.
Input any string data on the [Input the current UI Screen data] textfield, and press the [Set current UI Screen data] button.
Then the current data is displayed on the [Current UI Screen data] label.
Transit a UI Screen.
The following three way is to transit a UI Screen.
Input a UI Screen name on the [Input the UI Screen name to be transited] text field, and press the [Screen Trasition] button.
Click on a tab by mouse.
Type [CTRL]+[TAB] or [CTRL]+[SHIFT]+[TAB] by keyboard.
Source codes
UI Screen Control Tabbed Panel Applet sample:"Sample Storage Destinations"/JFCTabbedPanel/Sample.java
UI Screen Control Tabbed Panel sample:"Sample Storage Destinations"/JFCTabbedPanel/TabPanel.java
UI Screen Transitions Panel sample:"Sample Storage Destinations"/JFCCardPanel/SamplePanel0.java
UI Screen Transitions Panel sample:"Sample Storage Destinations"/JFCCardPanel/SamplePanel1.java