JavaFX 8 教程 (中文)



http://code.makery.ch/library/javafx-8-tutorial/zh-cn/

早在 2012 我和我的学生们写了一个非常详细的 JavaFX 2 系列教程。世界各地的人们都已阅读了这个教程并给了非常积极的反馈。所以我决定 为 JavaFX 8 改写 JavaFX 2 的教程 (阅读关于 JavaFX 8 的变化 Update to JavaFX 8 - What's New).

这个教程将指导您设计,编写并部署一个联系人应用程序。应用程序最后将会是这个样子:

Screenshot AddressApp

你将学到什么?

  • 创建并启动一个 JavaFX 项目。
  • 使用 Scene Builder 设计 UI 。
  • 构造一个 模型 - 视图 - 控制器 (MVC) 模式的应用程序。
  • 使用 ObservableLists 来自动更新用户界面。
  • 使用 TableView 来响应列表中的选择。
  • 创建一个 edit persons 的自定义弹出式对话框。
  • 验证用户输入。
  • 使用 CSS 样式化一个 JavaFX 应用程序。
  • 使用 XML 保存数据。
  • 在用户配置中保存最后一次打开文件的路径。
  • 创建 JavaFX 的统计图表。
  • 部署一个 JavaFX 到本机软件包。

这是相当多的! 所以,当你学习完这个教程后,你应该准备好使用 JavaFX 构建复杂的应用程序。

如何使用这个教程?

这有两种使用本教程两种方法:

  • 最大化学习的通道: 从头开始创建自己的 JavaFX 项目。
  • 快速通道: 导入教程部分的源代码到你的 IDE(它是一个 Eclipse 项目,但是你可以稍作修改后使用其它的 IDE 例如 NetBeans 这样的)。然后再通过教程来理解代码。
  • 8
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
Learn the Fundamentals of JavaFX 8 from Programming Guru Herb Schildt Introducing JavaFX 8 Programming provides a fast-paced, practical introduction to JavaFX, Java’s next-generation GUI programming framework. In this easy-to-read guide, best-selling author Herb Schildt presents the key topics and concepts you’ll need to start developing modern, dynamic JavaFX GUI applications. The book begins with the fundamentals, including the general form of a JavaFX program. You then advance to event handling, controls, images, fonts, layouts, effects, transforms, animations (including 3-D animations), menus, and more. Numerous complete examples are included that put key topics and techniques into action. Designed for Java programmers, the book’s focus is on the JavaFX API and all examples are written entirely in Java. Best of all, the book is written in the clear, crisp, uncompromising style that has made Herb Schildt the choice of millions worldwide. Learn the general form of a JavaFX program Work with scenes and stages Understand the fundamentals of JavaFX event handling Explore several controls, such as buttons, list views, sliders, trees, tables, scroll panes, and more Work with images, fonts, and layouts Explore the JavaFX menu system Use visual effects and transforms Incorporate 2-D and 3-D animation Present data in JavaFX charts Display Web-based content using WebView and WebEngine Table of Contents Chapter 1 JavaFX Fundamentals Chapter 2 Introducing Events and Controls Chapter 3 Exploring JavaFX Controls, Part One Chapter 4 Exploring JavaFX Controls, Part Two Chapter 5 Work with Images, Fonts, and Layouts Chapter 6 Effects and Transforms Chapter 7 Animation Chapter 8 Explore Menus Chapter 9 Charts, WebView, and Canvas
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值