owner.repaint(); }else if(e.getActionCommand().equalsIgnoreCase("Delete Key")){
	public void actionPerformed(ActionEvent e) {		if(e.getActionCommand().equalsIgnoreCase("New Key")){			//sprite.createKey("(new)",0,0,Sprite.KeyFrame.KEY_LOOP);			queryKeys();			owner.repaint();					}else if(e.getActionCommand().equalsIgnoreCase("Delete Key")){			owner.repaint();		}else if(e.getActionCommand().equalsIgnoreCase("OK")){			this.dispose();		}else if(e.getActionCommand().equalsIgnoreCase("Apply")){			Sprite.KeyFrame k = sprite.getKey((String)keysList.getSelectedValue());			if(k!=null){ 							k.setName(tName.getText());				//k.setStartFinish(Integer.parseInt(tStart.getText()),Integer.parseInt(tFinish.getText()));				k.setFrameRate(Float.parseFloat(tRate.getText()));				if(rbLoop.isSelected()){					k.setFlags(Sprite.KeyFrame.KEY_LOOP);				}else if(rbStop.isSelected()){					k.setFlags(Sprite.KeyFrame.KEY_STOP);				}else if(rbReverse.isSelected()){					k.setFlags(Sprite.KeyFrame.KEY_REVERSE);				}else if(rbAuto.isSelected()){					k.setFlags(Sprite.KeyFrame.KEY_AUTO);				}			}else{				JOptionPane.showMessageDialog(this,"Selected key not found!","No Key",JOptionPane.ERROR_MESSAGE);			}			owner.repaint();			queryKeys();		}	}