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

Swing content and SwingNode sizes should always be equal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4
    • tbd
    • 8u40
    • javafx
    • None

    Description

      A SwingNode is like a top-level window for the embedded Swing content. If it were a real top-level (e.g. a JFrame), the Swing content would always occupy the whole area of the window and would be responsible for painting each and every pixel of it.
      In order to avoid dealing with empty areas, and also to make the Swing content "feel" natural when placed into a SwingNode, we should ensure the same for the SwingNode. It is the SwingNode size (from FX layout perspective) that should determine the size of the Swing content at any time. If it doesn't fit, Swing should paint the empty areas (e.g. by means of rendering the background of the parent component into which the Swing content is added).

      Also see RT-37810 for some comments on this.

      Attachments

        Issue Links

          Activity

            People

              psadhukhan Prasanta Sadhukhan
              anthony Anthony Petrov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: