private void createGUI()
{
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container window =getContentPane();
window.setLayout(new FlowLayout());
panel=new JPanel();
panel.setPreferredSize(new Dimension(300,200));
panel.setBackground(Color.green);
window.add(panel);
button=new JButton("press me");
window.add(button);
button.addActionListener(this);
}
这种东西是熟记于心还是每次复制黏贴
还是自然而然就会记住的
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货