Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5031758

Private mthds of JTable.AccessibleJTable.AccessibleJTableCell should be protected

XMLWordPrintable

      Name: jl125535 Date: 04/14/2004


      A DESCRIPTION OF THE REQUEST :
      If you make the fix for 4483577 that will allow AccessibleJTable to be subclassed, please change the following methods from private to protected so that they can also be overridden:

      JTable.AccessibleJTable.AccessibleJTableCell.getCurrentAccessibleContext()
      JTable.AccessibleJTable.AccessibleJTableCell.getCurrentComponent().

      JUSTIFICATION :
      A large majority of the public methods in the JTable.AccessibleJTable.AccessibleJTableCell use these two private functions. It would be much easier to override these two methods than to override each method that uses them. In my particular case, I am trying to provide support for cell specific editors and renderers for the JTable.


      CUSTOMER SUBMITTED WORKAROUND :
      CUSTOMER WORKAROUND :
      Copy and paste the source code from all the inner classes
      you need back to AccessibleJComponent. This is a pain of
      course because:

      (a) any extensions, bug fixes etc. made to the original
      versions in future JDKs are missed

      (b) in some cases the original inner class directly
      accesses private members of the outer class which means the
      copied code needs to be modified
      (Incident Review ID: 209902)
      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: