
Originally Posted by
jilko
Thank you for your quick reply.
I thought about Class.forName() and catching ClassNotFoundException, but my problem is that the main class should extend from GameCanvas or FullCanvas. So for example, once I know that FullCanvas is supported how can I tell the main class to extend from that class instead of the general GameCanvas.
I think the only solution is having the class twice in one extends from FullCanvas and in the other one from GameCanvas, but the rest of the code remains exactly the same.
Is there a different way to do this avoiding that code-duplication?