Java 应用与开发 - Java GUI 编程Applet,特别是其历史渊源,了解与 Applet 类似的技术 5. 理解 Swing 和 AWT 的关系,学习使用 Swing 的典型组件构建较复杂的图形界面程序 ## 大纲 GUI 组件及布局 GUI 事件处理 Applet Swing Swing 典型组件(课后自学) 用 Java 构建图形界面,我们有什么选择? AWT ▶ Swing ▶ Java FX 多语言混合开发 ## 接下来 GUI GUI 组件及布局 GUI 事件处理 Applet Swing Swing 典型组件(课后自学) ## 概念和术语 ## 图形用户界面 GUI (Graphical User Interface), Java 主要分为 AWT 和 Swing 两大系列 GUI API。 ## 抽象窗口工具集 AWT (Abstract Window Toolkit) ## 相关软件包 java.awt 容器的嵌套使用 利用容器嵌套可以在某个原本只能包含一个组件的区域中显示多个组件。 课程配套代码 ▶ sample.awt.layout.FlowLayoutSample.java ## 接下来… Swing 典型组件(课后自学) ## Java 事件和事件处理机制 从 JDK 1.1 开始,Java 采用了一种名为 “事件代理模型”(Event Delegation Model)的事件处理机制。基本原理如下:0 码力 | 73 页 | 876.31 KB | 2 年前3
《Java 应用与开发》课程讲义 - 王晓东Applet 生命周期 ..... 138 11.3.2 Applet 程序示例 ..... 138 11.4 Swing 概述 ..... 139 11.5 Swing 典型组件 ..... 140 11.5.1 JFrame ..... 140 11.5.2 Swing 按钮、菜单和工具条 ..... 142 11.5.3 标准对话框 ..... 144 11.5.4 表格和树 Applet,特别是其历史渊源,了解与 Applet 类似的技术 5. 理解 Swing 和 AWT 的关系,学习使用 Swing 的典型组件构建较复杂的图形界面程序 ## 授课方式 理论课:多媒体教学、程序演示 实验课:上机编程 ## 教学内容 使用 Java 语言,我们可以开发平台无关的图形界面程序。Java 语言常用的 GUI 库包括 AWT、Swing 和 JavaFX。另外,我们也可以采用多语言混合开发的模式。本节主要介绍使用 的模式。本节主要介绍使用 AWT 及 Swing 的进行 GUI 开发的相关技术细节。 ### 11.1 GUI 组件及布局 GUI (Graphical User Interface) 即图形用户界面,Java 主要分为 AWT 和 Swing 两大系列 GUI API。其中,AWT (Abstract Window Toolkit) 即为抽象窗口工具集,是 Java 包含的最基础的图形界面库,AWT0 码力 | 330 页 | 6.54 MB | 2 年前3
Apache Wicket 8.x Reference Guidethem as we do with any other Java class. This approach is very similar to what GUI frameworks (like Swing or SWT) do with desktop windows and their components. Wicket and the other component oriented frameworks pages can be composed (and usually are) by many components, just like AWT windows are composed by Swing/AWT components. Both frameworks promote the reuse of presentation code and GUI elements building custom called TreeModelProvider that works with the same tree model and nodes used by Swing component javax.swing.JTree. These Swing entities should be familiar to you if you have previously worked with the old0 码力 | 350 页 | 9.95 MB | 2 年前3
Apache Wicket 7.x Reference Guidethem as we do with any other Java class. This approach is very similar to what GUI frameworks (like Swing or SWT) do with desktop windows and their components. Wicket and the other component oriented frameworks pages can be composed (and usually are) by many components, just like AWT windows are composed by Swing/AWT components. Both frameworks promote the reuse of presentation code and GUI elements building custom called TreeModelProvider that works with the same tree model and nodes used by Swing component javax.swing.JTree. These Swing entities should be familiar to you if you have previously worked with the old0 码力 | 346 页 | 10.00 MB | 2 年前3
Apache Wicket 10.x Reference Guidethem as we do with any other Java class. This approach is very similar to what GUI frameworks (like Swing or SWT) do with desktop windows and their components. Wicket and the other component oriented frameworks pages can be composed (and usually are) by many components, just like AWT windows are composed by Swing/AWT components. Both frameworks promote the reuse of presentation code and GUI elements building custom called TreeModelProvider that works with the same tree model and nodes used by Swing component javax.swing.JTree. These Swing entities should be familiar to you if you have previously worked with the old0 码力 | 336 页 | 7.16 MB | 2 年前3
Apache Wicket 9.x Reference Guidethem as we do with any other Java class. This approach is very similar to what GUI frameworks (like Swing or SWT) do with desktop windows and their components. Wicket and the other component oriented frameworks pages can be composed (and usually are) by many components, just like AWT windows are composed by Swing/AWT components. Both frameworks promote the reuse of presentation code and GUI elements building custom called TreeModelProvider that works with the same tree model and nodes used by Swing component javax.swing.JTree. These Swing entities should be familiar to you if you have previously worked with the old0 码力 | 335 页 | 7.15 MB | 2 年前3
The DevOps Handbooktest, c. Swing traffic to new environment, Rollback by swinging traffic back 2. Database changes a. Create two DB – put one in read only mode, backup & restore to new environment, swing traffic0 码力 | 8 页 | 23.08 KB | 1 年前3
Java 应用与开发 - 类加载和反射txt"); System.out.println(pf.getObject("a")); } File: obj.txt a=java.util.Date b=java.swing.JFrame ## 使用指定的构造器创建对象 需要利用 Constructor 对象,每个 Constructor 对应一个构造器,步骤如下: 1. 获取该类的 Class 对象。 2. 利用 { // 获取 JFrame 对应的 Class 对象 Class jFrameClazz = Class.forName("java.swing.JFrame"); // 获取 JFrame 中带一个字符串参数的构造器 Constructor ctor = jFrameClazz.getConstructor(String0 码力 | 46 页 | 714.40 KB | 2 年前3
《Efficient Deep Learning Book》[EDL] Chapter 7 - Automationthat need to be searched for an optimal value. For example, in the US presidential elections, the swing states are the important parameters because they have many counties (subspaces) whose vote share has a US presidential election would benefit from a more aggressive focus (search) on the counties in swing states (important parameters) than those in the rest of the states (unimportant parameters). 












