摘要: ### 3.5 按钮 普通按钮 ```javapackage com.zishi.lesson05; import javax.swing.*;import java.awt.*;import java.net.URL; public class JButtonDemo01 extends JFra 阅读全文
posted @ 2021-08-22 23:41 子时未临 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 3.4 面板 JPanel package com.zishi.lesson05;​import javax.swing.*;import java.awt.*;​public class JPanelDemo extends JFrame {​ public JPanelDemo(){ Conta 阅读全文
posted @ 2021-08-22 21:18 子时未临 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Icon标签 package com.zishi.lesson04; import javax.swing.*;import java.awt.*;import java.net.URL; public class ImageIconDemo extends JFrame { public Imag 阅读全文
posted @ 2021-08-22 20:56 子时未临 阅读(52) 评论(0) 推荐(0) 编辑
摘要: ### 3.2弹窗 ```javapackage com.zishi.lesson04; import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionList 阅读全文
posted @ 2021-08-22 18:57 子时未临 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 3.1窗口、面板 package com.zishi.lesson04;​import javax.swing.*;import java.awt.*;​public class JFrameDemo {​ //init();初始化 public void init(){ //顶级窗口 JFrame 阅读全文
posted @ 2021-08-22 18:18 子时未临 阅读(82) 评论(0) 推荐(0) 编辑