上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 37 下一页
摘要: 网络概述 概述 TCP 需要确认 一直连接 UDP 不需要确认一直连接 计算机网络 ​ 计算机网络是指将地理位置不同的具有独立功能的多台计算机及其外部设备,通过通信线路连接==起来,在网络操作系统,网络管理软件及网络通信协议的管理和协调下,实现资源共享和信息传递的计算机系统。- 网络编程的目的 ​ 阅读全文
posted @ 2021-04-16 10:44 saxon宋 阅读(84) 评论(0) 推荐(0)
摘要: 弹窗 //主窗口 public class DialogDemo extends JFrame { public DialogDemo() throws HeadlessException { this.setVisible(true); this.setSize(500,500); this.se 阅读全文
posted @ 2021-04-16 10:11 saxon宋 阅读(128) 评论(0) 推荐(0)
摘要: Swing-JFrame public class JFrameDemo { //初始化 public void init(){ JFrame jFrame = new JFrame("JFrame窗口!"); jFrame.setVisible(true); jFrame.setBounds(10 阅读全文
posted @ 2021-04-15 17:03 saxon宋 阅读(41) 评论(0) 推荐(0)
摘要: 键盘监听 public class Demo08 { public static void main(String[] args) { new KeyFrame(); } } class KeyFrame extends Frame{ public KeyFrame(){ setBounds(100 阅读全文
posted @ 2021-04-15 15:54 saxon宋 阅读(41) 评论(0) 推荐(0)
摘要: 窗口监听 public class Demo07 { public static void main(String[] args) { new WindowFrame(); } } class WindowFrame extends Frame{ public WindowFrame() throw 阅读全文
posted @ 2021-04-15 14:48 saxon宋 阅读(38) 评论(0) 推荐(0)
摘要: 鼠标监听 实现鼠标描点 public class Demo06 { public static void main(String[] args) { new MyFrame("画图"); } } class MyFrame extends Frame{ //需要画笔,需要监听鼠标的位置,需要集合存储 阅读全文
posted @ 2021-04-15 13:52 saxon宋 阅读(118) 评论(0) 推荐(0)
摘要: 画笔 public class Demo05 { public static void main(String[] args) { new MyPaint().loadFrame(); } } class MyPaint extends Frame{ public void loadFrame(){ 阅读全文
posted @ 2021-04-15 10:03 saxon宋 阅读(48) 评论(0) 推荐(0)
摘要: 简易计算器 oop原则:组合,大于继承 //简易计算器 public class Demo04 { public static void main(String[] args) { new Calculator(); } } //计算器类 class Calculator extends Frame 阅读全文
posted @ 2021-04-14 17:03 saxon宋 阅读(93) 评论(0) 推荐(0)
摘要: 输入框事件监听TextField 输入框中输入的字,可以打印出来,并将输入的字全部删除。 public class Demo03 { public static void main(String[] args) { MyFrame myFrame = new MyFrame(); } } class 阅读全文
posted @ 2021-04-14 15:31 saxon宋 阅读(285) 评论(0) 推荐(0)
摘要: 事件监听 当某个事件发生,会产生什么? public class Demo01 { public static void main(String[] args) { //按下按钮,触发事件 Frame frame = new Frame(); Button button = new Button() 阅读全文
posted @ 2021-04-14 10:14 saxon宋 阅读(49) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 37 下一页