Let's build our dictionary application
We will build a dictionary application to understand how to build a desktop application using the TornadoFX framework, which is based on top of JavaFX framework. You will learn how to use TornadoFX and Kotlin to quickly build a robust and beautiful desktop application with features such as type-safe CSS.
The idea is to build a desktop-based dictionary application that shows the meaning(s) of the input word. It will fetch the meaning of the input word from the web using Words API.
What we will build
Here is a sneak peek of the application and how it will look and work until we reach the end of the chapter:
After the user enters the word and clicks on the Get meaning
button, the meaning will be shown as follows:
Words API
The dictionary application will fetch the meanings of a given word from the Words API site (https://www.wordsapi.com/). There are several APIs provided by the Words API website, but we will be using only the dictionary API to fetch the meaning...