editor.getData().addAnimationListener(this);
editor.getData().addAnimationSetListener(this);
}
private void prepareToolbar() {
toolbar = new ToolBar();
newAnimationSetButton = new JButton(editor.getImageIcon("icons/NewAnimationSet.png"));
newAnimationSetButton.setToolTipText("Create new animation set");
newAnimationSetButton.addActionListener(this);
deleteAnimationSetButton = new JButton(editor.getImageIcon("icons/deleteAnimationSet.png"));