图片按钮 示例代码: public class JButtonDemo01 extends JFrame { public JButtonDemo01() { Container container = this.getContentPane(); //将图片变成图标 URL resource