I was trying to make the classes as general as possible, but probably i was too focused
on making it too general.
I have Adapter classes that basically does a specific function..It has a reference to the model, for example the SpriteLibraryModel which contains the sprites.
The NewSpriteActionToSpriteLibraryAdaptor class has the function of calling mode.addSprite(). So the point of my adapter classes is to have each function in an adapter class, and then register the object that decides when to do that function..Like a JButton. This works nice, I just make the adapter implement the ActionListener interface then registers itself as the listener on the JButton that comes in the constructor. The problem is that i was thinking too generally..what if my editor doesnt have a button for the "addSprite" function?(maybe the addsprite function should be done when the user press a button) Then i would have to get an event from a general object..But only JButtons generate ActionEvents, and some other components i guess but the Component class itself does not.. So I could create my own event and eventlistener but then i would have to subclass the JButton...and i still wanted to be able to make the gui with eclipse designer,which doesnt work with customized components i think. Anyway, I was thinking too much, my brain was fixed on creating the ultimate general library. Its strange that i was trying to do this when i cant come up on any idea of how it would be useful to use anything else then components..but still i wanted to try.
I still have the good design of model-adapter-view, so I can change the gui without breaking the real code and thats good enough for me