java实现推箱子小程序
this.setTitle("欢迎大家推箱子");
this.setBounds(200, 60, 535, 650);
this.setContentPane(panel);
for (int i = 0; i < walls.length; i++) {
walls[i] = new JLabel(new ImageIcon("wall.png"));
panel.add(walls[i]);
walls[i].setBounds(pos[i * 2] * 48, pos[i * 2 + 1] * 48, 48, 48);
1