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

Refactor initial insets and scroll position in WScrollPanePeer.initialize

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 21
    • client-libs

    Description

      WScrollPanePeer.initialize has the following statements:

              super.initialize();
              setInsets();
              Insets i = getInsets();
              setScrollPosition(-i.left,-i.top);

      Here both setInsets and setScrollPosition are native methods, both need to be run on the toolkit thread. These two calls can be coalesced so that both tasks are performed in a single JNI call with a single switch to the toolkit thread.

      Attachments

        Issue Links

          Activity

            People

              aivanov Alexey Ivanov
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: