ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing in Java
  • Overview
  • Generating a Java application with WINDEV
  • Available WLanguage functions
  • Specific features
  • Image formats
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview

Generating a Java application with WINDEV

WINDEV allows you to generate a Java application without even knowing the Java language. The method for developing the application is identical to the method for developing any other WINDEV application.
When the WINDEV project is compiled, the windows and the WLanguage functions are automatically converted into Java.
Available WLanguage functions
AnimationXXX functionsTreeXXX functionsBinaryXXX functionsDrawing functions
Drag and DropEmailXXX functionsInXXXMode functionsWinXXX functions
External file functionsHTTPXXX functionsHFSQL functionsPrint functions
FTP functionsString functionsControl functionsDate and time functions
IniXXX functionsJavaXXX functionsListXXX functionsMath functions
MatXXX functionsMemXXX functionsMenuXXX functionsClipboardXXX functions
SocketXXX functionsMouseXXX functionsSQLxxx functionsTableXXX functions
Thread, Event and Semaphore functionsTimerSys and EndTimerSysURLXXX functionsXMLxxx functions
ZipXXX functions (only the ZIP format without password is supported)Looperxxx functions

This list evolves very quickly. It is recommended to check the documentation for each function. The logo indicates whether the function is available in Java as well as its limitations.
The filter of the online help + is used to view the functions available in Java.
Specific features
The following elements are not available in Java generation:
  • components.
    Note: Internal components are available for Java. If the internal component includes an analysis, it will be ignored at runtime.
  • Web services
  • OLE Automation dialog
  • .NET component support and generation
  • multiple inheritance
  • dynamic compilation
  • "GOTO" statement
  • syntax to specify the name of a base class before a method
    Example: MyBaseClass::MyVirtualMethod
  • external language
  • reports. However, printing is available in WLanguage.
    You can print to PDF using WLanguage.
  • "popup" windows
  • indirections are not supported by local variables
  • there cannot be multiple structures with the same name in the same project (even if they are defined in different classes).
  • RTF support
  • User Macro-Code (UMC)
Java applications support skin templates from version 10 (and earlier).
".CUR" or ".ANI" custom mouse cursors are not supported in Java.
Styles: The following features are not available:
  • Clipped windows
  • Shadow for static controls.
  • Transparency and window animations.
  • Some fonts specific to Windows may not be supported in Java (a default font will be used).
  • Font attributes: underline and strikethrough.
  • Resizable combo boxes.
  • Ability to use the skin template of the project on system windows.
  • Buttons cannot have multiline text.
Vista styles are available in Java.

Image formats

Java supports the following image formats: JPEG, PNG, GIF, BMP.
Related Examples:
WD JavaMail Training (WINDEV): WD JavaMail
[ + ] This example is a Java example used to read and send emails.
WD Managing the Java errors Training (WINDEV): WD Managing the Java errors
[ + ] WINDEV enables you to develop Java applications without even knowing Java.
You benefit from the power and from the automated processes of the WINDEV environment.
One of the most useful automated processes is the automatic management of errors.
This example presents the operating mode and the implementation of the mechanism for managing the WINDEV errors.
Some illustrations allow you to understand the simplification performed when implementing this feature.
This project is configured to generate a Java archive.
WD Java Chart Designer Training (WINDEV): WD Java Chart Designer
[ + ] WINDEV enables you to create some Java applications without even knowing Java.
You program with a 5GL (WLanguage) and WINDEV generates the Java code.
The drawing functions of WINDEV are available in Java generation.
This example explains how to create charts with these drawing functions.
Three types of charts are presented in this example:
- the bar chart,
- the scatter chart,
- and the line chart.
WD JAVA Calls Training (WINDEV): WD JAVA Calls
[ + ] WD JAVA Calls is an example containing two configurations of project:
- A "Windows Application" configuration that is used to create the executable of the application
- A "Java Application" configuration that is used to create the Java archive (.JAR) of the application
This example is supplied with a JAR archive named "JavaFunction" external to the application.
It presents the call to the methods of classes of this JAR archive via the WLanguage function named JavaExecuteFunction.
This example also explains how a memory table can be filled (identical in Java mode and in Windows mode)
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 03/10/2025

Send a report | Local help