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

MetalFileChooserUI can't override private createSingleClickListener

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.2
    • client-libs



      Name: dbT83986 Date: 08/07/99


      I want to extend the behavior of the single click
      listener so that i can programatically disable the rename
      capability.
      The inner class SingleClickListener is protected
      and so in a class that extends MetalFileChooserUI i can do
          protected myListener extends SingleClickListener {...}
      however to get my listener installed, i need to override
          createSingleClickListener
      but this is private and so i can not override it.
      createSingleClickListener should be protected.

      One idea is to override createList(), but it needs to set the
      instance variable "list" which is private. So this can not
      be done either. Changing installComponents() which invokes
      createList() is not practical.
      (Review ID: 93561)
      ======================================================================

            leifs Leif Samuelsson (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: