@Override
			public void actionPerformed(ActionEvent arg0) {
				
				
				// TODO Զɵķ
				if(yesbutton.isSelected()){
					plist.add(new Product(idtext.getText(),nametext.getText(),
							Integer.parseInt(numtext.getText()),Double.valueOf(weighttext.getText()),true));
					dispose();
					ptable.setModel(new ProductModel(plist));
				}
				else{
					plist.add(new Product(idtext.getText(),nametext.getText(),
							Integer.parseInt(numtext.getText()),Double.valueOf(weighttext.getText()),false));
					dispose();
					ptable.setModel(new ProductModel(plist));
				}
				/*
				 * ¼붩ܼ
				 */
				int num = 0;
				for(int i = 0;i < plist.size();i++)
					num += plist.get(i).getPnum();
				int weight = 0;
				for(int i = 0;i < plist.size();i++)
					weight += plist.get(i).getSumpweight();
				numolabel.setText("ǰܼ: " + num +" ");
				weightolabel.setText(": "+ weight + "kg");
			}