Java JViewport fixScrollRendering(JViewport viewport)

Here you can find the source of fixScrollRendering(JViewport viewport)

Description

fix Scroll Rendering

License

Apache License

Declaration

public static void fixScrollRendering(JViewport viewport) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.JViewport;

public class Main {
    public static void fixScrollRendering(JViewport viewport) {
        viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
    }//from w  w w .  j  a  v a2 s  .  c om
}

Related

  1. canHScroll(JViewport viewport)
  2. canScroll(JViewport viewport)
  3. setViewPortPosition(JViewport viewport, Rectangle position)
  4. synchronizeView(final JViewport masterViewport, final JViewport slaveViewport, final int orientation)