没有合适的资源?快使用搜索试试~ 我知道了~
learn javafx 8
需积分: 50 31 下载量 27 浏览量
2017-10-11
23:33:19
上传
评论 1
收藏 18.48MB PDF 举报
温馨提示
javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8 javafx 8
资源推荐
资源详情
资源评论









Sharan
www.apress.com
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Learn JavaFX 8
Learn JavaFX 8 shows you how to start developing rich-client desktop applications
using your Java skills and provides comprehensive coverage of JavaFX 8’s features.
Each chapter starts with an introduction to the topic at hand, followed by a step-by-step
discussion of the topic with small snippets of code. The book contains numerous figures
aiding readers in visualizing the GUI that is built at every step in the discussion.
The book starts with an introduction to JavaFX and its history. It lists the system
requirements and the steps to start developing JavaFX applications. It shows you how to
create a Hello World application in JavaFX, explaining every line of code in the process.
Later in the book, author Kishori Sharan discusses advanced topics such as 2D and 3D
graphics, charts, FXML, advanced controls, and printing. Some of the advanced controls
such as TableView, TreeTableView and WebView are covered at length in separate
chapters.
This book provides complete and comprehensive coverage of JavaFX 8 features;
uses an incremental approach to teach JavaFX, assuming no prior GUI knowledge;
includes code snippets, complete programs, and pictures; covers MVC patterns using
JavaFX; and covers advanced topics such as FXML, effects, transformations, charts,
images, canvas, audio and video, DnD, and more. So, after reading and using this book,
you’ll come away with a comprehensive introduction to the JavaFX APIs as found in the
new Java 8 platform.
• How to develop rich-client desktop applications using JavaFX 8
• How to use properties, collections, colors, and styles
• How to use controls and handle events to build modern GUI applications
• How to use advanced controls such as TreeView, TableView, and TreeTableView
• How to access webpages in JavaFX applications
• How to draw 2D and 3D shapes, and apply effects and transformations
• How to create animations and charts using the JavaFX 8 APIs
• How to add audio and video to your applications
• How to create GUIs in JavaFX using FXML
• How to provide printing capabilities using the JavaFX Print API
RELATED
Shelve in
Programming Languages/Java
User level:
Beginning–Intermediate
SOURCE CODE ONLINE
9781484 211434
55999
ISBN 978-1-4842-1143-4

For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.

v
Contents at a Glance
About the Author ����������������������������������������������������������������������������������������������������xxi
About the Technical Reviewers ����������������������������������������������������������������������������xxiii
Acknowledgments �������������������������������������������������������������������������������������������������xxv
Introduction ���������������������������������������������������������������������������������������������������������xxvii
Chapter 1: Getting Started ■ ������������������������������������������������������������������������������������� 1
Chapter 2: Properties and Bindings ■ ��������������������������������������������������������������������� 25
Chapter 3: Observable Collections ■ ����������������������������������������������������������������������� 83
Chapter 4: Managing Stages ■ ����������������������������������������������������������������������������� 127
Chapter 5: Making Scenes ■ ��������������������������������������������������������������������������������� 149
Chapter 6: Understanding Nodes ■ ����������������������������������������������������������������������� 163
Chapter 7: Playing with Colors ■ �������������������������������������������������������������������������� 201
Chapter 8: Styling Nodes ■ ����������������������������������������������������������������������������������� 223
Chapter 9: Event Handling ■ ��������������������������������������������������������������������������������� 259
Chapter 10: Understanding Layout Panes ■ ���������������������������������������������������������� 303
Chapter 11: Model-View-Controller Pattern ■ ������������������������������������������������������ 419
Chapter 12: Understanding Controls ■ ����������������������������������������������������������������� 435
Chapter 13: Understanding TableView ■ ��������������������������������������������������������������� 617
Chapter 14: Understanding TreeView ■ ���������������������������������������������������������������� 663
Chapter 15: Understanding TreeTableView ■ �������������������������������������������������������� 689
Chapter 16: Browsing Web Pages ■ ���������������������������������������������������������������������� 711

■ Contents at a GlanCe
vi
Chapter 17: Understanding 2D Shapes ■ �������������������������������������������������������������� 741
Chapter 18: Understanding Text Nodes ■ ������������������������������������������������������������� 789
Chapter 19: Understanding 3D Shapes ■ �������������������������������������������������������������� 805
Chapter 20: Applying Effects ■ ����������������������������������������������������������������������������� 841
Chapter 21: Understanding Transformations ■ ����������������������������������������������������� 899
Chapter 22: Understanding Animation ■ �������������������������������������������������������������� 917
Chapter 23: Understanding Charts ■ �������������������������������������������������������������������� 953
Chapter 24: Understanding the Image API ■ �������������������������������������������������������� 997
Chapter 25: Drawing on a Canvas ■ ������������������������������������������������������������������� 1033
Chapter 26: Understanding Drag and Drop ■ ������������������������������������������������������ 1043
Chapter 27: Understanding Concurrency in JavaFX ■ ���������������������������������������� 1071
Chapter 28: Playing Audios and Videos ■ ����������������������������������������������������������� 1101
Chapter 29: Understanding FXML ■ �������������������������������������������������������������������� 1120
Chapter 30: Understanding the Print API ■ �������������������������������������������������������� 1157
Index ������������������������������������������������������������������������������������������������������������������� 1173

xxvii
Introduction
Java had the support for developing GUI applications since its version 1.0 using the AWT (Abstract Windows
Toolkit). Later AWT was replaced by Swing, which gave a little better user experience, but still lacked the
modern-looking widgets and the support for developer’s productivity. Both AWT and Swing lacked the
rst-class support for data binding, ecient GUI rendering engines, easy-to-use 2D and 3D libraries for
developers, and style sheet support. JavaFX was rst released in 2008 as the tool to use for developing rich
Internet applications (RIAs); it used a statically typed declarative language called JavaFX Script, which did
not attract a lot of attention from Java developers. JavaFX 2.0, released in 2011, caught the Java community’s
attention when it dropped the support for JavaFX Script and supported writing JavaFX programs using the
Java programming language. In its current version, JavaFX 8 is supported in the Java platform by including
the JavaFX runtime along with the Java runtime in the JRE. Now JavaFX 8 is considered a real successor for
Swing for building the GUI application using the Java platform.
Learn JavaFX 8 shows you how to start developing rich-client desktop applications in JavaFX 8 using
your Java skills. It provides comprehensive coverage of the JavaFX 8 features. Each chapter starts with an
introduction to the topic at hand. A step-by-step discussion of the topic with small snippets of code follows.
At the end of the topic’s discussion, a complete program is presented. Special care has been taken to present
the topics in such a way that chapters can be read serially. e book contains numerous pictures to aid you
in visualizing the GUI that is built at every step in the discussion.
e book starts with an introduction to JavaFX and its history. It lists the system requirements and
the steps to start developing JavaFX applications. It shows you how to create a Hello World application in
JavaFX, explaining every line of code in the process. Later in the book, advanced topics such as 2D and 3D
graphics, charts, FXML, advanced controls, and printing are discussed. Some of the advanced controls such
as TableView, TreeTableView, and WebView are covered in chapters of their own.
I faced few hurdles while writing this book. As JavaFX 8 was being developed, JavaFX 2, the version before
JavaFX 8, was the rst release of JavaFX that used the Java programming language to write JavaFX code. ere
were few bugs in JavaFX 2. Sometimes it took me a couple of days of hard work to create an example to work
with, only to realize that there was a bug in it. Later, if something did not work, I would look at the JIRA bug
reports for JavaFX before spending too much time researching it myself. I had to x bugs as I found them. It
took me 18 months to nish this book and, in the end, it was satisfying to see that what I had produced was a
lot of useful material covering almost every topic in JavaFX so fully that readers could use to learn and build a
rich client application quickly using JavaFX. I hope you will enjoy the book and benet greatly from it.
I believe that programming is simple if you learn it that way. Keeping this in mind, I kept the examples
in the book as simple as possible, presenting them in as few lines as I could. e examples focus on the topic
being discussed. I do not present complex GUI in my examples, keeping in mind that this could obscure the
learning process of the topic at hand. I have seen books that contain examples that run four or ve pages
long, sometimes even longer; readers of such books (myself included) often get lost in trying to understand
the logic of the program, thus forgetting what they were trying to learn in that section. erefore, simple
programs in this book are intended to help you learn JavaFX faster. e book includes 330 ready-to-run
programs and 430 pictures. Having more pictures than programs is evident from my approach in keeping the
readers’ interest the rst priority. Almost every time I discuss a snippet of code producing a UI, I include the
picture of the results of the UI, so readers are not left to their imaginations as to what the code snippet will
produce. Having to run every snippet of code to see the output can hinder the learning rhythm.
剩余1209页未读,继续阅读
资源评论


普通网友
- 粉丝: 324
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 网站建设策划书15篇.docx
- 毕业设计(论文)-基于VB的人事管理系统设计与实现.doc
- 2019年2月计算机应用专业大学生实习报告.doc.doc
- c语言练习题(带详解答案).doc
- 最新最全无线通信基础知识精装版版演示教学.ppt
- GB T 12357.1-2004 通信用多模光纤 第1部分 A1类多模光纤特性.pdf
- 大连理工大学2021年9月《单片机原理及应用》作业考核试题及答案参考7.docx
- 四川大学2021年9月《移动通信系统》作业考核试题及答案参考15.docx
- 配电自动化-1-绪论(2018)修改演示教学.ppt
- 基于网络分析的小型GIS平台的开发与实现的开题报告.docx
- 复杂系统的信息脆性风险研究及在网络通信系统中的应用的开题报告.docx
- 互联网+环境下我国社会工作的发展及应对策略.docx
- 计算机系统集成竞争格局分析.pptx
- Excel表格通用模板:仓库进销存管理系统.xls
- YD T16412007互联网业务服务质量技术要求.pdf
- 2022网络编辑的实习报告总结.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
