Desktop Graphical User Interface Coding with Swing and JavaFX
This chapter will introduce a simple but complete application for providing three common financial calculations. These are loan payments, the future value of money, and a savings goal. We will look at two versions of this application, one written using the Swing library and the second using the JavaFX library. The server-side coding for this application will be covered in Chapter 15, Jakarta Faces Application.
We will cover the following in this chapter:
- A brief history of Java GUIs
- A financial calculator program design
- Using the Swing GUI framework
- Using the JavaFX GUI framework
- Which should I use?
By the end of this chapter, you will understand the basics of GUI coding using the two most widely used frameworks.