I am currently writing a Game Engine in Java and I reached a point where I think about creating my own types of Buttons
, Lists
and so on.
I can't just create awt Components
and change their behavior because I want them to have different shapes, textures etc.
Should I extend Button
in a new Class , say MyOwnButton.class
and modify it's inhitered methods or create a new Button
from scratches?
What would give me a better Performance?