清爽蓝色模板之java中的图形用户界面规划设计gui-programming-in-java.ppt

清爽蓝色模板之java中的图形用户界面规划设计gui-programming-in-java.ppt

  1. 1、本文档共27页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
清爽蓝色模板之java中的图形用户界面规划设计gui-programming-in-java

GUI Programming in Java Presented by Thanh Pham thanh.phamhong@ 06/2007 B070038 – NIIT Quang Trung Contents Basic Concepts GUI? Graphical User Interface (pronounced GOO-ee“). Presents a user-friendly mechanism for interacting with an application. Users can learn how to use an app quickly and use it more productively. Ex: Internet Explorer, MS Word, JCreator… GUIs are built from GUI components (controls or widgets-window gadget). A GUI component is an object with which the user interacts via the mouse, the keyboard or another form of input, such as voice recognition. Abstract Window Toolkit (AWT) vs. Swing Similarities: Tools provided by Java for developing interactive GUI applications Provides GUI components that can be used in creating Java applications and applets Abstract Window Toolkit (AWT) vs. Swing AWT (Abstract Window Toolkit) Some AWT components use native code Platform-dependent Ensure that the look and feel of an application run on different machines be comparable Swing Written entirely using the Java programming language Platform-independent Ensures applications deployed across different platforms have the same appearance Built around a number of APIs that implement various parts of the AWT Can be used with AWT Demo MessageBox InputBox Create Frame (AWT) Create Frame (Swing) CenterFrame Exercises Display two input-boxes that accepts two numbers then shows the result. Accepts three numbers, displays the largest, smallest. (Assume that all input values are valid numbers) Create a simple frame AWT and Swing Control Components AWT Control Components An AWT control is a component that enables end users to interact with applications created in Java. All AWT controls in Java are subclasses of the Component class. The Component class provides the add() method to add AWT components to containers, such as an applet or a window. AWT Control Components TextField TextArea Button List CheckBox Choice Labels Demo FrameWithControl Swing Control Components Swing c

文档评论(0)

ligennv1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档