摘要:
布局管理器 流式布局 从左到右 public static void main(String[] args) { Frame frame = new Frame(); //组件-按钮 Button button1 = new Button("button1"); Button button2 = n 阅读全文
posted @ 2021-04-13 17:26
saxon宋
阅读(69)
评论(0)
推荐(0)
摘要:
Panel面板 解决了无法关闭问题,即调用addWindowsListener方法的子方法,并重写其中的WindowsClosing方法,来调用程序关闭的.exit(0)方法 //Panel 可以看成一个空间,但不能单独存在 public class TestPanel { public stati 阅读全文
posted @ 2021-04-13 15:30
saxon宋
阅读(166)
评论(0)
推荐(0)
摘要:
AWT 简介 包含许多类和接口!!! 组件Component类:是一个具有图形表示能力的对象,可在屏幕上显示,并可与用户进行交互。Component 类是与菜单不相关的 Abstract Window Toolkit 组件的抽象超类。 Label Button 容器Container类:继承了Com 阅读全文
posted @ 2021-04-13 13:35
saxon宋
阅读(167)
评论(0)
推荐(0)
摘要:
GUI编程 Graphical User Interface(图形用户接口)。 GUI的继承体系 组件:组件就是对象 容器组件:是可以存储基本组件和容器组件的组件。 基本组件:是可以使用的组件,但是必须依赖容器。 核心技术 java.awt:Abstract Window ToolKit 阅读全文
posted @ 2021-04-13 10:36
saxon宋
阅读(433)
评论(0)
推荐(0)

浙公网安备 33010602011771号