java swing外文文献_Java Swing英文本pdf教程(Java Swing (O'Reilly))

【实例简介】

【实例截图】

31553e496ccb1b0f507f39d432cf8ec5.png

【核心代码】

Java Swing

Preface - 5

What This Book Covers

About the Source Code

Conventions

Acknowledgments

1. Introducing Swing - 10

1.1 What Is Swing?

1.2 Swing Features

1.3 Swing Packages and Classes

1.4 The Model-View-Controller Architecture

1.5 Working with Swing

1.6 The Swing Set Demo

1.7 Reading this Book

2. Jump Starting a Swing Application - 27

2.1 Upgrading Your Programs

2.2 Beyond Buttons

2.3 A Bigger Application

3. Swing Component Basics - 44

3.1 Understanding Actions

3.2 Sending Change Events in Swing

Java Swing – O’Reilly

- 3 -

6.2 The JScrollBar Class

6.3 The JSlider Class

6.4 The JProgressBar Class

6.5 Monitoring Progress

7. Lists and Combo Boxes - 137

7.1 Lists

7.2 Representing List Data

7.3 Handling Selections

7.4 Displaying Cell Elements

7.5 The JList Class

7.6 Combo Boxes

7.7 The JComboBox Class

8. Swing Containers - 178

8.1 A Simple Container

8.2 Basic RootPaneContainers

9. Internal Frames - 208

9.1 Managing a Desktop

9.2 Building a Desktop

10. Swing Dialogs - 232

10.1 The JDialog Class

10.2 The JOptionPane Class

11. Specialty Panes and Layout Managers - 255

11.1 The JSplitPane Class

11.2 The JScrollPane Class

11.3 The JTabbedPane Class

11.4 Layout Managers

11.5 Other Panes

12. Chooser Dialogs - 292

12.1 The JFileChooser Class

12.2 The File Chooser Package

12.3 The Color Chooser

12.4 The JColorChooser Class

13. Borders - 327

13.1 Introducing Borders

13.2 Swing Borders

13.3 The CompoundBorder Class

13.4 Creating Your Own Border

14. Menus and Toolbars - 350

14.1 Introducing Swing Menus

14.2 Menu Bar Selection Models

14.3 The JMenuBar Class

14.4 The JMenuItem Class

14.5 The JPopupMenu Class

14.6 The JMenu Class

14.7 Selectable Menu Items

14.8 Toolbars

15. Tables - 400

15.1 Table Columns

15.2 Table Data

15.3 The JTable Class

15.4 Editing and Rendering

15.5 Selecting Table Entries

16. Advanced Table Examples - 449

Java Swing – O’Reilly

- 4 -

16.1 A Table with Row Headers

16.2 Large Tables with Paging

16.3 Charting Data with a TableModel

17. Trees - 466

17.1 A Simple Tree

17.2 Tree Models

17.3 Tree Nodes and Paths

17.4 The JTree Class

17.5 Tree Selections

17.6 Tree Events

17.7 Rendering and Editing

17.8 What Next?

18. Undo - 534

18.1 The Swing Undo Facility

19. Text 101 - 578

19.1 The Swing Text Components

19.2 More to Come

20. Document Model and Events - 609

20.1 The Document Model

20.2 Document Events

20.3 Advanced AbstractDocument Event Model

21. Styled Documents and JTextPane - 658

21.1 Style

21.2 A Stylized Editor

22. Carets, Highlighters, and Keymaps - 730

22.1 JTextComponent UI Properties

23. Text Views - 749

23.1 Text Views

23.2 The View Classes

24. EditorKits and TextActions - 788

24.1 Overview of the Editor Kits

24.2 Phew!

25. Programming with Accessibility - 827

25.1 How Accessibility Works

25.2 The Accessibility Package

25.3 Other Accessible Objects

25.4 The Six Types of Accessibility

25.5 The Accessibility Utility Classes

25.6 Interfacing with Accessibility

26. Look & Feel - 858

26.1 How Does It Work?

26.2 Key L&F Classes and Interfaces

26.3 The MultiLookAndFeel

26.4 Look-and-Feel Customization

26.5 Creation of a Custom L&F

27. Swing Utilities - 912

27.1 General Utilities

27.2 Editing and Rendering Utilities

27.3 Event Utilities

27.4 Image Utilities

28. Swing Under the Hood - 938

Java Swing – O’Reilly

- 5 -

28.1 Creating Your Own Component

28.2 Working with Focus

28.3 Lightweight vs. Heavyweight Components

28.4 Multithreading Issues with Swing

28.5 Painting and Repainting

A. Look & Feel Resources - 978

Colophon - 985

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Java 图形界面开发简介 .............. ................................ ................................ ..... 5 1. Swing1. Swing1. Swing 1. Swing1. Swing1. Swing1. Swing简介 ................................ ................................ ................................ ................................ ............... 5 2. Swing2. Swing2. Swing 2. Swing2. Swing2. Swing2. Swing组件 ................................ ................................ ................................ ................................ ............... 5 3. 3. 3. 布局管理器 布局管理器 ................................ ................................ ................................ ................................ ............. 8 4. 4. 4. 代码实例 代码实例 : 一个简单的窗口程序 一个简单的窗口程序 一个简单的窗口程序 一个简单的窗口程序 一个简单的窗口程序 ................................ ................................ ................................ ..... 9 1.1: FlowLayo1.1: FlowLayo1.1: FlowLayo1.1: FlowLayo1.1: FlowLayo 1.1: FlowLayo 1.1: FlowLayout (流式布局) (流式布局) (流式布局) (流式布局) ................................ ................................ ................................ ...................... 10 1. 概述 ................................ ................................ ................................ ................................ ....................... 10 2. 代码实例 ................................ ................................ ................................ ................................ .............. 11 1.2: GridLayout(网格布局) (网格布局) (网格布局) (网格布局) ................................ ................................ ................................ ..................... 13 1. 概述 ................................ ................................ ................................ ................................ ....................... 13 2. 代码演示 ................................ ................................ ................................ ................................ .............. 14 1.3: GridBagLayout1.3: GridBagLayout1.3: GridBagLayout1.3: GridBagLayout1.3: GridBagLayout 1.3: GridBagLayout 1.3: GridBagLayout1.3: GridBagLayout 1.3: GridBagLayout1.3: GridBagLayout 1.3: GridBagLayout1.3: GridBagLayout(网格袋布局) (网格袋布局) (网格袋布局) (网格袋布局) ................................ ................................ ................................ ........... 17 1. 布局 : GridBagLayout ................................ ................................ ................................ ...................... 17 2. 约束 : GridBagConstraints ................................ ................................ ................................ ............. 17 3. 属性 : GridBagConstraints 的属性 ................................ ................................ ............................. 18 4. 案例 : GridBagLayout使用实例 使用实例 ................................ ................................ ................................ ... 19 1.4: BoxLayout1.4: BoxLayout1.4: BoxLayout1.4: BoxLayout1.4: BoxLayout 1.4: BoxLayout1.4: BoxLayout1.4: BoxLayout 1.4: BoxLayout1.4: BoxLayout(箱式布局) (箱式布局) (箱式布局) (箱式布局) ................................ ................................ ................................ ........................ 25 1. 概述 ................................ ................................ ................................ ................................ ....................... 25 2. 代码实例 ................................ ................................ ................................ ................................ .............. 27 1.5: GroupLayout(分组布局) (分组布局) (分组布局) ................................ ................................ ................................ ................. 29 1. 概述 ................................ ................................ ................................ ................................ ....................... 29 2. 代码实例 ................................ ................................ ................................ ................................ .............. 31 1.6: CardLayout(卡片布局) (卡片布局) (卡片布局) ................................ ................................ ................................ .................... 36 1. 概述 ................................ ................................ ................................ ................................ ....................... 36 2. 代码实例 ................................ ................................ ................................ ................................ .............. 37 1.7: BorderLayout(边界布局) (边界布局) (边界布局) ................................ ................................ ................................ ................ 40 1. 概述 ................................ ................................ ................................ ................................ ....................... 40 2. 代码实例 ................................ ................................ ................................ ................................ .............. 41 1.8: SpringLayout(弹性布局) (弹性布局) (弹性布局) ................................ ................................ ................................ ................ 43 1. 概述 ................................ ................................ ................................ ................................ ....................... 43 2. 代码实例 ................................ ................................ ................................ ................................ .............. 47 1.9: null(绝对布局) (绝对布局) (绝对布局) ................................ ................................ ................................ ................................ .... 52 1. 概述 ................................ ................................ ................................ ................................ ....................... 52 2. 代码实例 ................................ ................................ ................................ ................................ .............. 53 2.1: JLabel(标签) (标签) (标签) ................................ ................................ ................................ ................................ ....... 56 1. 概述 ................................ ................................ ................................ ................................ ....................... 56 2. 代码实例 ................................ ................................ ................................ ................................ .............. 61 2.2: JButton(按钮) (按钮) (按钮) ................................ ................................ ................................ ................................ ..... 64 1. 概述 ................................ ................................ ................................ ................................ ....................... 64 2. 代码实例 : 默认按钮 默认按钮 ................................ ................................ ................................ ........................ 66 3. 代码实例 : 自定义图片按钮 自定义图片按钮 自定义图片按钮 自定义图片按钮 ................................ ................................ ................................ .......... 68 2.3: JRadioButton(单选按钮) (单选按钮) (单选按钮) ................................ ................................ ................................ ................ 71 2 1. 概述 ................................ ................................ ................................ ................................ ....................... 71 2. 代码实例 ................................ ................................ ................................ ................................ .............. 73 2.4: JCheckBox(复选框) (复选框) (复选框) ................................ ................................ ................................ ......................... 75 1. 概述 ................................ ................................ ................................ ................................ ....................... 75 2. 代码实例 ................................ ................................ ................................ ................................ .............. 77 2.5: JToggleButton(开关按钮) (开关按钮) (开关按钮) ................................ ................................ ................................ .............. 80 1. 概述 ................................ ................................ ................................ ................................ ....................... 80 2. 代码实例 : 默认 的开关按钮 的开关按钮 的开关按钮 ................................ ................................ ................................ .......... 82 3. 代码实例 : 自定义图片开关 自定义图片开关 自定义图片开关 自定义图片开关 ................................ ................................ ................................ .......... 84 2.6: JTextField(文本框) (文本框) (文本框) ................................ ................................ ................................ ........................... 87 1. 概述 ................................ ................................ ................................ ................................ ....................... 87 2. 实例代码 ................................ ................................ ................................ ................................ .............. 91 2.7:PasswordField(密码框) (密码框) (密码框) ................................ ................................ ................................ ................... 93 1. 概述 ................................ ................................ ................................ ................................ ....................... 93 2. 代码实例 ................................ ................................ ................................ ................................ .............. 96 2.8: JTextArea(文本区域) (文本区域) (文本区域) (文本区域) ................................ ................................ ................................ ....................... 98 1. 概述 ................................ ................................ ................................ ................................ ....................... 98 2. 代码实例 ................................ ................................ ................................ ................................ ............ 103 2.9: JComboBox(下拉列表框) (下拉列表框) (下拉列表框) ................................ ................................ ................................ ............ 105 1. 概述 ................................ ................................ ................................ ................................ ..................... 105 2. 代码实例 ................................ ................................ ................................ ................................ ............ 107 2.10: JList(列 表框) 表框) ................................ ................................ ................................ ................................ .. 110 1. 概述 ................................ ................................ ................................ ................................ ..................... 110 2. 代码实例 ................................ ................................ ................................ ................................ ............ 113 2.11: JProgressBar(进度条) (进度条) (进度条) ................................ ................................ ................................ ................ 117 1. 概述 ................................ ................................ ................................ ................................ ..................... 117 2. 代码实例 ................................ ................................ ................................ ................................ ............ 119 2.12: JSlider(滑块) (滑块) (滑块) ................................ ................................ ................................ ................................ .. 123 1. 概述 ................................ ................................ ................................ ................................ ..................... 123 2. 代码实例 : 默认刻度值 默认刻度值 默认刻度值 ................................ ................................ ................................ .................. 126 3. 代码实例 : 自定义标签刻度值 自定义标签刻度值 自定义标签刻度值 自定义标签刻度值 ................................ ................................ ................................ .... 128 3.1: JPanel(面板) (面板) ................................ ................................ ................................ ................................ ..... 132 1. 概述 ................................ ................................ ................................ ................................ ..................... 132 2. 代码实例 ................................ ................................ ................................ ................................ ............ 133 3.2: JScrollPane(滚动面板) (滚动面板) (滚动面板) (滚动面板) ................................ ................................ ................................ ................. 135 1. 概述 ................................ ................................ ................................ ................................ ..................... 135 2. 代码实例 ................................ ................................ ................................ ................................ ............ 138 3.2: JScrollPane(滚动面板) (滚动面板) (滚动面板) (滚动面板) ................................ ................................ ................................ ................. 140 1. 概述 ................................ ................................ ................................ ................................ ..................... 140 2. 代码实例 ................................ ................................ ................................ ................................ ............ 142 3.4: JTabbedPane(选项卡面板) (选项卡面板) (选项卡面板) (选项卡面板) ................................ ................................ ................................ ......... 145 1. 概述 ................................ ................................ ................................ ................................ ..................... 145 2. 代码实例 ................................ ................................ ................................ ................................ ............ 149 3.5: JLayeredPane(层级面板) (层级面板) (层级面板) ................................ ................................ ................................ ............

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值