Overview

The ModFrame client is the tool for configuring a ModFrame application. The client can be connected to one server at the time, but several clients can simultaneously be connected to the same server. The client displays the contents of the connected server graphically in the Configuration panel, as well as the component hierarchy in the Browser.

The Menu and the Tool bar is used for operations, as well as popup menus on the components in the configuration panel and  browser. Messages (information, warning and alarms) are presented in the Log view.

Starting the client

After ModFrame has been installed the ModFrame client can be started by selecting All Programs->Apis->ModFrame->ModFrame client.

 Batch file

It is possible to create a batch file which starts the client with custom settings. Below is an example of the contents of a batch file. This must be altered to fit the installation. Using batch files it is possible to set all java options. It is also possible to give a file name as a parameter containing settings for the client.

Batch file
Copy Code
C:\\\Program Files\Java\jdk1.6.0_03\bin\javaw.exe -Xmx500m -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Djava.security.policy=java.policy -classpath C:\\\Apis\ModFrame\ModFrame.jar;C:\\\Apis\ModFrame\xml.jar;C:\\\Apis\ModFrame\ClickAndTrace.jar; com.modframe.client.MFClient "C:\\\Apis\ModFrame\clientsettings.ini"

Client settings

The following settings can be applied to the client by adding them to the client settings file.

PropertyDescriptionDefault value
ProductNameThe name of the productModFrame
AutoConnectIf true the server set in the InitialConnectionServer connected automatically on startup.
InitialConnectionServerThe server to connect to on start up. The format is rmi://ip-address/servername:port
ServerReadIntervalThe interval [ms] between reconnect attempts when the server connection is lost and the interval between history value updates. Cannot be less than 1000 ms1000
HelpExecThe location of the help file.current-directory/help
RemoteObjectPortThe RMI port. Use when the client/server are separeted by firewall.Automatically obtained.