
fiswidget examples
These are some very simple examples of fiswidget applications, and a not so simple
example. See the Getting Started section for more details.
- Hello1
This is just about the tiniest fiswidget I could come up with. It pops
up a box for the user to enter a string like world and then
uses the UNIX echo command (not the shell command) to echo Hello world.
Note: You will need to edit Hello1Run.java and enter the correct path name
for echo on your system.
Hello1.java (FisBase class)
Hello1Run.java (FisRunManager class)
Hello1 help file
Screen shot:

- Hello2
Hello2 has added the following features to Hello1
Hello2.java
- The .fisproperties file is loaded, p1.loadProperties(),
and the BROWSER and FISDOC_PATH keys are checked.
- The HELP button is activated, activateHelpButton().
- A line is added to the About box with addToAbout().
- A spacer, newLine(), and checkbox, FisCheckBox() have been
added to the GUI interface.
Hello2Run.java
- The status of the checkbox is examined, gui.cb1.isChecked().
- The exit status of the FisRunner command is checked with
run1.getExitValue().
- If the checkbox is checked, an additional window is brought up,
new HelloJ(text). This demonstrates the ability to invoke
standard (non fiswidget) Java GUI applications from within a fiswidget.
Hello2.java (FisBase class)
Hello2Run.java (FisRunManager class)
HelloJ.java (Simple Java program using AWT)
Screen shot:

- xfind
Xfind is a small example of almost all the widgets.
Instead of displaying "Hello World", it actually acts as a usefull utility.
It provides a GUI wrapper for the Unix's FIND command.
It has the following features
xfind.java
- The .fisproperties file is loaded, properties.loadFisProperties(FISPROPERTIES_SYSTEM_OR_USER),
and the BROWSER and FISDOC_PATH keys are checked.
- The HELP button is activated, activateHelpButton().
- A line is added to the About box with addToAbout().
- A spacer, newLine(), and checkbox, FisCheckBox() have been
added to the GUI interface.
- There are also check text fields, integer and float fields, combo boxes, list boxes, radio buttons, toggle buttons, browse buttons, advanced buttons, labels and more.
xfindRun.java
- The status of the checkboxes and switches are examined.
- The exit status of the FisRunner command is checked with run1.getExitValue().
- Depending on the switches different options are added to "find" command.
xfind.java (FisBase class)
xfindRun.java (FisRunManager class)
Screen shot:
