Class override / custom class

I'm working with a library (batik) but I need to make it behave differently when running in an applet. I've tried doing this in my applet class (by adding events to the SVGDOMDocument) but on reflection it won't cover all edge cases.

Therefore I need to change the way batik handles events when the context is in an applet. What's best practice in this instance? Do I create a class of the same name a s hte one i need to customize and import it after the batik libraries over riding the batik class or do I customize their class and jar it as batik-whatever-customized.jar ?


(I'm more of a javascripter and traditionally I would redefine the class (or hackily create a pointer to the original class and create a class of the same name that inherited from the class via pointer)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!