roduct.addActionListener(this);Рmoneyreturn.addActionListener(this);Р РJPanel Opt=new JPanel();РOpt.setLayout(new BorderLayout());РOpt.add("North",moneyinserted);РOpt.add("Center",toubi);РOpt.add("South",Buttons);Р РJPanel productshow=new JPanel(new GridLayout(3,4,5,5)); Рproductshow.setBorder(new TitledBorder(new LineBorder(Color.RED,5),"商品显示区"));Р РJPanel panel=new JPanel(); Рpanel.setLayout(new BorderLayout());Рpanel.add("Center",Opt);Рpanel.add("East",productOut);Рpanel.add("West",product[12]);Р//panel.setSize(800,800);РsetLayout(new BorderLayout());Рadd("North",productshow);Рadd("Center",ad);Рadd("South",panel);Р//setResizable(false);Р//setBounds(0,0,550,700);Р for(int i=0;i<13;i++)Р?{Р productImage[i] = new ImageIcon("image/"+i+".jpg");Р if(i!=12)Р { Р productshow.add(product[i]);Р }