Menu

Extending JCFTestHelper

2004-11-11
2013-04-09
  • Laura Dietz

    Laura Dietz - 2004-11-11

    In order to solve my Dragging Problem (see Help Forum) I thought about extending JFCTestHelper and reusing the mousePressed ... methods.

    Unfortunately, this class is final and can not be extended. Okay I thought, then we implement a wrapper...

    Unfortunately, the mousePressed... methods are protected so I have no chance to reuse your code.

    Haven't I?

    If it is possible, I am eager to know. Copying the source does not seem to be a good idea....

    Yours,
       Laura

     
    • Kevin Duffey

      Kevin Duffey - 2004-11-19

      I am surprised the method is final. Maybe there is a specific reason for it? Not sure though...

      Why couldn't you copy it exactly, then add your code? OR, you could fix the problem in the JFCTestHelper class and submit your fix!! That would be much better. I can commit changes for you if you can send them to me.

       
      • Kevin L Wilson

        Kevin L Wilson - 2004-11-19

        The method is final to insure that all can benefit from the fixes. If you need to make a fix, please simply post the fix including notes to the Bugs and this will get addressed in the next release.

         

Log in to post a comment.