ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Applet control
  • 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
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 websites.
To create a Java Applet control, you must have:
  • the Java applet (".Class" file).
  • the different parameters of applet.
Creating a Java Applet control
To create a Java Applet control:
  1. On the "Creation" tab, in the "Integration" group, click "Java applet".
  2. Click where you want to create the control in the page. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu.
Characteristics specific to the Java Applet control

Control description

To configure the Java Applet control, specify the following details in the "General" tab of the 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: Applet names are "case sensitive".. Pay special attention to the uppercase and lowercase characters.
  • the base, 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 subdirectory of "<ProjectName>_WEB" directory.
    Example: "/JavaSite_web/MyApplets/"
    Note: Depending on the Web server used, directory names 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 anparameter, click on the "Add" button: Specify the parameter name ("Parameter Name" 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 CommandLine.
    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 language subdirectory of the project directory (FR, UK, etc.).
    Example: If the parameter is a file located 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 language subdirectory of the <ProjectName>_WEB directory (FR, UK, etc.).
Example: If the parameter is a file present in the "<ProjectName>_WEB" directory, the value of the parameter corresponds to "../<File Name>".
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help