There's more...
Complex classes require more work to be imported, but there are tools that can help in this hard work. Some tools available for the Delphi versions before XE8 are Java2Pas: http://www.softwareunion.lu/en/downloads/. For users of a newer version, Embarcadero released Java2OP, which does a very good job. One of the next recipes will talk about it.
These tools do a good job and help in the boring methods declaration phase; however, you cannot simply import a class and use it in your Delphi code. In many cases, you have to do additional work to arrange a good class structure in your units to get around units' circular references; however, if you are interested and want to know more, I suggest checking the good presentation by ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access