By Satyam Singh
It is a simple project of converting temperature units using JavaFX. A proper GUI is prepared to perform the function.
Here, in this packet, we made a temperature converter tool using JavaFX.
Initially, GUI was designed in the applayout.fxml file of JavaFX, in which all the components visible to the users are well placed according to their function. Then in the Mymain.class file, a start method was introduced which displays the top index of the window which contains menu options, also contains a link between the FXML file and the Mymain.class file. Then in the Controller. class file every button, text field, etc. are assigned their function code that'll be performed whenever it'll be used. It detects a proper error if the temperature is not entered in a valid format. After conversion, it popups an alert message displaying the answer of the conversion.
Screenshot Of Results:
Although it is a simple project but uses all the concepts of JavaFX and a very good project to learn and clear all the basic concepts of JavaFX.
Submitted by Satyam Singh (satyams671)
Download packets of source code on Coders Packet