没有合适的资源?快使用搜索试试~ 我知道了~
javajavajavajavajava、javajava
资源详情
资源评论
资源推荐
Chapter 1 (课本 Ch4 ,
6 )
Window Interfaces
Using Swing Objects
Event-Driven Programming and GUIs
Swing Basics and a Simple Demo Program
Layout Managers
Buttons and Action Listeners
Container Classes
Text I/O for GUIs
Swing
Special library of classes that allows Java
programs to have a windowing interface
Part of larger collection called Java Foundation
Classes or JFC
An improved version of older library called
Abstract Window Toolkit (AWT)
Standard part of all versions of Java 2 (JDK 1.2)
GUIs—Graphical User Interfaces
Most modern programs use a GUI(WIMP)
Graphical—not just text or characters: windows,
menus, buttons, etc.
User—person using the program
Interface—way to interact with the program
Typical graphical elements:
Window—portion of screen that serves as a
smaller screen within the screen
Menu—list of alternatives offered to user
Button—looks like a button that can be pressed
Event-Driven Programming
Programs with GUIs often use Event-Driven Programming
Program waits for events to occur and then responds
Examples of events:
Clicking a mouse button
Dragging the mouse
Pressing a key on the keyboard
Firing an event—when an object generates an event
Listener—object that waits for events to occur
Event handler—method that responds to an event
A New Approach to Programming
Previous Style of
Programming:
List of instructions
performed in order
Next thing to happen is
next thing in list
Program performed by one
agent—the computer
Event-Driven Style of
Programming:
Objects that can fire
events and objects that
react to events
Next thing to happen
depends on next event
Program is interaction
between user and
computer
剩余34页未读,继续阅读
lpweiweiqianmian
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- HM2305B-VB一款P-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于52单片机、ADC0832、LCD1602、两个74HC393和一个74HC08的频率测量计 不能用,请私我
- HM2302-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- python实战项目-学生成绩管理系统(基础版)
- 微信小程序源码 实现查公交 滴滴公交 app 源码下载
- HM2302E-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于C#图片相似度比较,感知哈希算法
- VR开发的概要介绍与分析
- 自动驾驶定位系列教程七:点云畸变补偿.pdf
- HM2302D-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0