2022年8月16日

端口号

摘要: 阅读全文

posted @ 2022-08-16 16:30 大风吹过12138 阅读(34) 评论(0) 推荐(0)

ip地址

摘要: 网络编程3要素:ip 端口号 协议 ping 加上一个IP地址,如果能ping通,就代表你的电脑以和这台电脑进行数据交换 ping 127.0.0.1以及localhost都代表本机的IP地址 阅读全文

posted @ 2022-08-16 16:06 大风吹过12138 阅读(131) 评论(0) 推荐(0)

网络通信协议分类

摘要: UDP:无连接传输协议 成本小 TCP:传输控制协议 阅读全文

posted @ 2022-08-16 15:54 大风吹过12138 阅读(125) 评论(0) 推荐(0)

2022年8月7日

下拉框,列表框

摘要: 下拉框 列表框 阅读全文

posted @ 2022-08-07 18:50 大风吹过12138 阅读(44) 评论(0) 推荐(0)

图片按钮,多选框,单选框

摘要: public class JButtonDemo01 extends JFrame{ public JButtonDemo01(){ Container contentPane = this.getContentPane(); URL url=JButtonDemo01.class.getResou 阅读全文

posted @ 2022-08-07 18:27 大风吹过12138 阅读(26) 评论(0) 推荐(0)

文本域JScroll面板

摘要: 1 public class JScrollDemo extends JFrame { 2 public JScrollDemo(){ 3 Container container = getContentPane(); 4 JTextArea jTextArea=new JTextArea(20,4 阅读全文

posted @ 2022-08-07 16:11 大风吹过12138 阅读(23) 评论(0) 推荐(0)

Icon,ImageIcon标签

摘要: 1 public class IconDemo extends JFrame implements Icon { 2 int width; 3 int height; 4 public IconDemo(){ 5 } 6 public IconDemo(int width,int height){ 阅读全文

posted @ 2022-08-07 04:03 大风吹过12138 阅读(250) 评论(0) 推荐(0)

2022年8月6日

JDialog弹窗

摘要: public class DialogDemo extends JFrame { public DialogDemo(){ setVisible(true); setBounds(300,300,400,500); Container container= this.getContentPane() 阅读全文

posted @ 2022-08-06 18:08 大风吹过12138 阅读(55) 评论(0) 推荐(0)

2022年8月5日

Swing之JFrame窗体

摘要: 1 public class JFrameDemo extends JFrame{ 2 public void init() { 3 JFrame jf = new JFrame("guoguoguo"); 4 //获得一个容器 5 Container container= jf.getConten 阅读全文

posted @ 2022-08-05 23:51 大风吹过12138 阅读(11) 评论(0) 推荐(0)

键盘监听事件

摘要: public class demo01 { public static void main(String[] args) { new KeyFrame("hahhahhs"); } } class KeyFrame extends Frame{ public KeyFrame(String titl 阅读全文

posted @ 2022-08-05 17:55 大风吹过12138 阅读(28) 评论(0) 推荐(0)

导航