PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview of Java Applet control
  • Control in a dynamic or static page
  • Creating a Java Applet control
  • Characteristics specific to the Java Applet control
  • Control description
  • Current directory
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview of Java Applet control

Control in a dynamic or static page

A Java Applet control allows you to easily include Java Applets in your WEBDEV sites.
To create a Java Applet control, you must own:
  • the Java applet (".Class" file).
  • the different parameters of applet.
Creating a Java Applet control
To create a Java Applet control:
  1. In the page editor, click (or select "Insert .. Control .. Java Applet").On the "Creation" pane, in the "Integration" group, click "Java applet".On the "Creation" pane, in the "Integration" group, expand "Plug-in" and click "Java applet".
  2. Click the position where the control will be created in the page. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
Characteristics specific to the Java Applet control

Control description

To configure the Java Applet control, the following details must be specified in the "General" tab of control description:
  • the Jar archive if necessary. This archive must be specified when the Java applet is included in an archive.
  • the name of the Applet file (without extension) corresponding to the main applet to run (".CLASS" file).
    Example: "Scroll"
    Note: The names of applets are "case sensitive". Pay special attention to the uppercase and lowercase characters.
  • the database, which means the name of directory containing all components of Java applet. This string must be preceded and followed by the "/" character. We advise you to place all objects required to run the applet in the "<ProjectName>_WEB" directory of project or in a sub-directory of "<ProjectName>_WEB" directory.
    Example: "/JavaSite_web/MyApplets/"
    Note: Depending on the Web server used, the names of directories are "case sensitive". Pay special attention to the uppercase and lowercase characters.
  • the table of parameters. This table groups all the parameters required to run the applet. The list of parameters is supplied by the distributor of Applet.
    To add a parameter, click the "Add" button: Specify the parameter name ("Name of the parameter" column) and its value ("Value" column).
    To delete a parameter, select the parameter and click the "Delete" button.
    If the Java applet was created with WINDEV, the name of parameters corresponds to the name of parameters retrieved by OrderLine.
    Example: Initialization code of the WINDEV project used to create the applet:
    P1 is string
    P1 = CommandLine("Param1")

    In this case, the name of the parameter that will be used in WEBDEV is "Param1".

Current directory

To specify the database and the parameters, the path is relative to the current directory. The current directory is the directory where the HTM file corresponding to the page is generated.
  • For a dynamic page, the current directory is the sub-directory of the project directory corresponding to the language (FR, US,..).
    Example: If the parameter is a file found in the "<ProjectName>_WEB" directory, the value of the parameter corresponds to "/<ProjectName>_WEB/<File Name>".
  • For a static page, the current directory is the sub-directory of the <Project_Name>_WEB directory corresponding to the language (FR, US, ...).
Example: If the parameter is a file found in the "<ProjectName>_WEB" directory, the value of the parameter corresponds to "../<File Name>".
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment