摘要: import java.awt.*; public class ButtonDemo{ public static JPanel createMainPanel(){ JPanel mainPanel=new JPanel();//mainPanel:中间容器 JPanel panel1=new JPanel();... 阅读全文
posted @ 2018-05-25 17:11 LesileCheung 阅读(107) 评论(0) 推荐(0)
摘要: import javax.swing.*; public class JPaneDemo extends JPanel{ public JPanel part1(){ JPanel panel1=new JPanel(); panel1.add(new JLabel("请输入要猜测的数字"));//JLabel:标签 ... 阅读全文
posted @ 2018-05-17 10:45 LesileCheung 阅读(170) 评论(0) 推荐(0)
摘要: import javax.swing.*; public class MyFrame extends JFrame{ piublic MyFrame(){ this.setTitle("这是我第一个窗口"); this.setSize(300,300); this.setResizable(fals 阅读全文
posted @ 2018-05-16 13:13 LesileCheung 阅读(111) 评论(0) 推荐(1)