Delphi to Java Swing Online Presentation

Demo presentation text:


Welcome to this demonstration of the migration tools provided by Ispirer Systems for Delphi to Java application conversion.

In this video, I’d like to show you how easily the conversion from Delphi to Java Swing can be performed by Ispirer tools.

Before proceeding directly to the demo, I would like to say a few words about the Ispirer toolkit provided for automatic conversion and modernization. There are two graphical tools based on a command line tool called

• Ispirer Migration and Modernization Engine – it can be run in batch mode and can perform the automatic conversion of application code contained in scripts.

• Ispirer Migration Studio – a GUI tool oriented specifically to the conversion of a separate application script. Works with one script at a time.

• Ispirer Migration Commander – a GUI tool designed for the conversion of multiple files containing application code. Works with several scripts at a time.

For this demo we have selected a Delphi program. There are 3 tabs in it: the first one contains welcome information, the second one allows finding a definite record by year, updating a record, adding a new one or deleting a record. For example, I’ll enter 2016 and press the button «Find». You can see the information from the database. And the third tab contains controls with uploaded information, we can click «Show Report» and see graphic and tabular views of the data.

Now let’s see how this Delphi application can be converted with the help of Ispirer Migration Commander.

After launching this tool, in its left pane we need to select the folder, which contains the source files. In the right pane we need to specify a directory in which all the generated results of the conversion will be placed.

So, in the left pane we see the source files of the program. There are:

DelphiToJavaSWING.dpr file – the main file of the application;

DataDemo.dfm and DataDemo.pas files which have the connection to the database;

FormDemo.dfm file with all the controls and

FormDemo.pas file which contains the business logic of the application.

In order to begin the conversion process, we need to specify the source of the conversion – in our case it’s Delphi, and the target – Java SWING. Then in the left pane we need to select the source files for the conversion and just click the button RUN.

As we’ve selected the dpr file which is the main file of the application and includes the second version of dfm and pas files, the conversion process can take a few seconds.

After the conversion, the following files will be generated: – the main program file which will launch the application; and are Java classes which have the connection to the database and contain SQL statements to accomplish. – is a Java class which corresponds to the same .pas file and contains the business logic; – is a Java class which corresponds to FormDemo.dfm file and contains all the controls.

Now let’s convert the same application with the help of Ispirer Migration Studio.

After launching Ispirer Migration Studio, we need to open the source file of the Delphi program. In our case it is FormDemo.pas file.

Then we need to specify the source and the target of the conversion and click the button RUN.

After the conversion has been completed, in the right pane we will see the converted code of this pas file. The source and the target are the same as in the first example.

Now let’s run the conversion using the command line tool. We have created a file with all the necessary options. The source and the target of the conversion, the source file. Now let’s run this file.

As you can see, a folder with the conversion results has been generated. We have all the necessary files after the conversion. These results are identical to the results which we got before in Migration Commander and Migration Studio.

Once the conversion process has been completed, we can integrate the results to Java project, open them in Eclipse IDE, compile and execute them. As you can see, we have the same Java classes here. Let’s run the program. This is our Java application. The functionality of this application is the same as we have in Delphi. Let’s check it. The first tab, the second one. I’ll enter the same year – 2016. Again you can see the information from the database. And the third tab, it also has the same controls. Let’s click the button «Show report», and you can see the identical result.

This is all information about the tools that our company provides for the conversion from Delphi to Java.

It is just a review of the tools, so if you need additional information please contact us, and we will be glad to assist you in your migration projects.

Thank you very much for your attention. Bye.

Do you want to move from Delphi to Java?

Let's do it together!

Learn more