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

Need more flexibility for Swing painting process

XMLWordPrintable

      There are some problems for which Swing doesn't provide a good solution
      For example: it is almost impossible to create true non-rectangular components
      because a conatiner doesn't control children's repainting so when child component repaint itself it doesn't respect parent's shape.
      To solve this problem one can provide his own repaint manager, but it is not a good solution because there can be the only repaint manager in the system for all Swing components. You can't set one repaint manager for this component and leave a default one for the others.

      Despite non rectangular components it is worth investigating more complex issues:
      applying any 2d transformations to Swing components
      something simular to what MS Avalon is gonna to have.

      It would be very spectacular if Swing could e.g rotate components
      and it would be very good for Swing image because
      we'll show that we can do what the newest visual library can

      To achive it two areas should be investigated:

      - How to support affine transformation for Swing components painting
      - How to support them for mouse events processing

      I think potentially we can support both of them

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

              Created:
              Updated:
              Imported:
              Indexed: