没有合适的资源?快使用搜索试试~ 我知道了~
Working with JavaFX UI Components.pdf
需积分: 9 12 下载量 170 浏览量
2014-11-27
18:33:39
上传
评论 1
收藏 7.26MB PDF 举报
温馨提示
In this tutorial, you learn how to build user interfaces in your JavaFX applications with the UI components available through the JavaFX API. 介绍了JavaFX所有UI控件。目录如下: 1. What Is New 2. Label 3. Button 4. Radio Button 5. Toggle Button 6. Checkbox 7. Choice Box 8. Text Field 9. Password Field 10. Scroll Bar 11. Scroll Pane 12. List View 13. Table View 14. Tree View 15. Tree Table View 16. Combo Box 17. Separator 18. Slider 19. Progress Bar and Progress Indicator 20. ... ... 等共40章
资源推荐
资源详情
资源评论
JavaFX
Working with JavaFX UI Components
Release 8
E47848-02
August 2014
In this tutorial, you learn how to build user interfaces in your
JavaFX applications with the UI components available
through the JavaFX API.
JavaFX Working with JavaFX UI Components Release 8
E47848-02
Copyright © 2011, 2014, Oracle and/or its affiliates. All rights reserved.
Primary Author: Alla Redko, Irina Fedortsova
Primary Author:
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it
on behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data
delivered to U.S. Government customers are "commercial computer software" or "commercial technical data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As
such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and
license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of
the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software
License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
This software or hardware is developed for general use in a variety of information management
applications. It is not developed or intended for use in any inherently dangerous applications, including
applications that may create a risk of personal injury. If you use this software or hardware in dangerous
applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other
measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages
caused by use of this software or hardware in dangerous applications.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks
of their respective owners.
This software and documentation may provide access to or information on content, products, and services
from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all
warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and
its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of
third-party content, products, or services.
Contents
Part I About This Tutorial
1 What Is New
Part II Using JavaFX UI Controls
2 Label
Creating a Label........................................................................................................................................ 2-1
Setting a Font............................................................................................................................................. 2-2
Wrapping Text ........................................................................................................................................... 2-2
Applying Effects ....................................................................................................................................... 2-3
3 Button
Creating a Button...................................................................................................................................... 3-1
Assigning an Action................................................................................................................................. 3-2
Applying Effects ....................................................................................................................................... 3-2
Styling a Button ........................................................................................................................................ 3-3
4 Radio Button
Creating a Radio Button.......................................................................................................................... 4-1
Adding Radio Buttons to Groups ......................................................................................................... 4-2
Processing Events for Radio Buttons.................................................................................................... 4-2
Requesting Focus for a Radio Button................................................................................................... 4-3
5 Toggle Button
Creating a Toggle Button ........................................................................................................................ 5-1
Adding Toggle Buttons to a Group....................................................................................................... 5-2
Setting the Behavior................................................................................................................................. 5-2
Styling Toggle Buttons ............................................................................................................................ 5-3
6 Checkbox
Creating Checkboxes ............................................................................................................................... 6-1
Defining a State ........................................................................................................................................ 6-1
Setting the Behavior................................................................................................................................. 6-2
7 Choice Box
Creating a Choice Box.............................................................................................................................. 7-1
Setting the Behavior for a Choice Box.................................................................................................. 7-2
Applying a Tooltip ................................................................................................................................... 7-3
8 Text Field
Creating a Text Field ................................................................................................................................ 8-1
Building the UI with Text Fields ........................................................................................................... 8-1
Processing Text Field Data...................................................................................................................... 8-3
9 Password Field
Creating a Password Field ...................................................................................................................... 9-1
Evaluating the Password......................................................................................................................... 9-1
10 Scroll Bar
Creating a Scroll Bar ............................................................................................................................. 10-1
Using a Scroll Bar in Your Application............................................................................................. 10-2
11 Scroll Pane
Creating a Scroll Pane........................................................................................................................... 11-1
Setting the Scroll Bar Policy for a Scroll Pane................................................................................. 11-1
Resizing Components in the Scroll Pane ......................................................................................... 11-2
Sample Application with a Scroll Pane ............................................................................................ 11-3
12 List View
Creating a List View.............................................................................................................................. 12-1
Populating a List View with Data ...................................................................................................... 12-2
Customizing the Content of a List View........................................................................................... 12-4
Processing the List Item Selection ..................................................................................................... 12-5
13 Table View
Creating a Table ..................................................................................................................................... 13-2
Defining the Data Model..................................................................................................................... 13-4
Adding New Rows................................................................................................................................ 13-8
Sorting Data in Columns ................................................................................................................... 13-13
Editing Data in the Table ................................................................................................................... 13-13
Adding Maps of Data to the Table................................................................................................... 13-22
14 Tree View
Creating Tree Views .............................................................................................................................. 14-1
Implementing Cell Factories............................................................................................................... 14-3
Adding New Tree Items on Demand................................................................................................. 14-9
Using Tree Cell Editors....................................................................................................................... 14-13
15 Tree Table View
Creating a TreeTableView control...................................................................................................... 15-1
Adding Several Columns..................................................................................................................... 15-3
Altering Visual Appearance................................................................................................................ 15-6
Managing Selection Mode................................................................................................................... 15-7
16 Combo Box
Creating Combo Boxes ......................................................................................................................... 16-1
Editable Combo Boxes.......................................................................................................................... 16-4
Applying Cell Factories to Combo Boxes......................................................................................... 16-7
17 Separator
Creating a Separator.............................................................................................................................. 17-1
Adding Separators to the UI of Your Application .......................................................................... 17-2
Styling Separators ................................................................................................................................. 17-4
18 Slider
Creating a Slider .................................................................................................................................... 18-1
Using Sliders in Graphical Applications.......................................................................................... 18-2
19 Progress Bar and Progress Indicator
Creating Progress Controls.................................................................................................................. 19-1
Indicating Progress in Your User Interface ...................................................................................... 19-3
20 Hyperlink
Creating a Hyperlink ............................................................................................................................ 20-1
Linking the Local Content ................................................................................................................... 20-1
Linking the Remote Content............................................................................................................... 20-4
21 HTML Editor
Adding an HTML Editor...................................................................................................................... 21-2
Using an HTML Editor to Build the User Interface........................................................................ 21-3
Obtaining HTML Content................................................................................................................... 21-5
剩余441页未读,继续阅读
资源评论
bu2zhouzhu123
- 粉丝: 1
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功