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

Refactor initial insets and scroll position in WScrollPanePeer.initialize

XMLWordPrintable

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

      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.

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

              Created:
              Updated: