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

Make JPanel catch repainting from its children

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7
    • 7
    • client-libs
    • None

      Swing programmers use custom RepaintManagers to implement various visual effects
      that are not directly supported in Swing.

      The famous example is given in the chapter #11 of the "Filthy Rich Clients" book
      where this trick is used to implement a reflection of the Swing panel content

      Changing a RepaintManger leads to some unwanted effects like disabling the
      "gray rect fix" and generally is not recommended by the Swing team.

      http://weblogs.java.net/blog/2008/04/13/repaintmanagers-side-effect

      We should provide a more simple and natural way to implement for this kind of effects,
      JPanel should be able to catch the repaintings of its children.

            alexp Alexander Potochkin (Inactive)
            alexp Alexander Potochkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: