|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/create-a-gui-javafx-currency-exchange-with-clean-java-code/
课程评论:没有评论
**课程名称:** 使用纯净 Java 代码创建 JavaFX 货币兑换 GUI **课程概述:** 本课程将带您一起创建一个 JavaFX 桌面应用程序,用于货币兑换。我们将使用 Scene Builder 来创建图形用户界面。Scene Builder 是一款免费开源的拖放式界面设计工具,能够实现快速开发。 课程将实现前端 GUI 与 Java 后端代码的分离。在前端,我们将设计一个美观且包含丰富组件(AnchorPane、ImageView、TextField、Label、Button、LineChart 和 ComboBox)的仪表盘。 您将了解 apilayer 网站以及提供的各种货币兑换 API,并学习如何理解其端点和参数。我们还将使用免费工具 ReqBin 测试不同的 HTTP GET 请求。 在后端,我们将重点关注面向对象编程(OOP)和 Java,并力求编写出纯净、可维护且灵活的代码。我们将把每个功能拆分到独立的类中: * **API 交互类:** 用于与远程 API 进行通信。 * **控制器类:** 用于与视图模型(在本例中为 FXML 文件)进行交互。 * **模型类:** 用于创建从远程 API 获取的对象。 * **服务类:** 用于实现业务逻辑和处理用户输入等各种功能。 * **接口实现类:** 用于实现包含项目中所有必要方法的接口。 在将后端与前端连接之前,我们将在 main 方法中测试整个后端,并修复遇到的所有问题。最后,我们将通过在仪表盘控制器类中实现所有方法来完善项目。该类将直接处理用户输入和结果输出。
In this course we will create together a javaFx desktop application for Currency Exchange , we will create the graphical user interface using scene builder ,by the way scene builder is free and open source and it based on Drag & Drop user interface design allows for rapid development.We will design the GUI (frontend) seperated from the java backend code.For the frontend we will design a beautiful dashboard which gather different components(anchorPanes , imageViews , textFields , labels , buttons , lineChart and combobox)We will see the apilayer website and various api provided for the currency exchange and understanding some end point and its parameter. we will test distinct http GET request using free tool (reqBin)we will also try to focus in oriented object programming and java for the backend with clean ,maintainable and flexible code , we will split each functionality alone in separate class:classes to interact with remote API Connection.controller class to interact with the view model (FXML file in our case).models classes to create the objects fetched from the remote API.services class for the business logic and different functionalities to deal with the user input.class to implement an interface which contains all needed method in our project.we will test the whole backend in main method and fix all the problems which we faced before to linked it with the frontend.finally we will finalize our project by implementing all methods inside dashboard controller class , this class has a direct interaction with the user input ,and result output.