摘要: 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) 编辑
摘要: 窗口监听事件 package com.zishi.lesson03;​import java.awt.*;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;​public class TestWindow { 阅读全文
posted @ 2021-08-13 17:46 子时未临 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 画笔、鼠标监听 ```javapackage com.zishi.lesson03; import java.awt.*;import java.awt.event.MouseAdapter;import java.awt.event.MouseEvent;import java.util.Arra 阅读全文
posted @ 2021-08-13 01:23 子时未临 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 画笔paint package com.zishi.lesson03;​import java.awt.*;​public class TestPaint { public static void main(String[] args) { new MyPaint().loadFrame(); }} 阅读全文
posted @ 2021-08-12 23:14 子时未临 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 简易计算器+组合和内部 package com.zishi.lesson02;​import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;​//简易计算器public class 阅读全文
posted @ 2021-08-12 00:14 子时未临 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 简易计算器 package com.zishi.lesson02;​import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;​//简易计算器public class TestCa 阅读全文
posted @ 2021-08-11 23:54 子时未临 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 输入框事件监听TestFiled package com.zishi.lesson02;​import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;​public class Te 阅读全文
posted @ 2021-08-11 21:54 子时未临 阅读(77) 评论(0) 推荐(0) 编辑
摘要: package com.zishi.lesson02;​import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapt 阅读全文
posted @ 2021-08-10 17:55 子时未临 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 布局的小demo package com.zishi.lesson01;​import java.awt.*;//练习demopublic class TestLayout { public static void main(String[] args) { Frame frame = new Fr 阅读全文
posted @ 2021-08-07 23:19 子时未临 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 三种布局管理器 流式布局 ```javapackage com.zishi.lesson01; import java.awt.*; public class TestFlowLayout { public static void main(String[] args) { Frame frame 阅读全文
posted @ 2021-08-07 21:16 子时未临 阅读(39) 评论(0) 推荐(0) 编辑