mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
21.23.2009 73b7e65201a9ffbe85597a054749fb620c402358
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
@@ -402,7 +402,7 @@
    scroll.getViewport().setOpaque(false);
    scroll.getViewport().setBackground(ColorAndFontConstants.background);
    scroll.setBackground(ColorAndFontConstants.background);
    setScrollIncrementUnit(scroll);
    UIFactory.setScrollIncrementUnit(scroll);
    return scroll;
  }
@@ -418,27 +418,11 @@
    scroll.setOpaque(false);
    scroll.getViewport().setBackground(ColorAndFontConstants.background);
    scroll.setBackground(ColorAndFontConstants.background);
    setScrollIncrementUnit(scroll);
    UIFactory.setScrollIncrementUnit(scroll);
    return scroll;
  }
  /**
   * Sets the scroll increment unit for the scroll.
   * @param scroll the scroll to be updated.
   */
  public static void setScrollIncrementUnit(JScrollPane scroll)
  {
    if (scroll.getVerticalScrollBar() != null)
    {
      int increment = scroll.getVerticalScrollBar().getUnitIncrement();
      if (increment < 16)
      {
        scroll.getVerticalScrollBar().setUnitIncrement(16);
      }
    }
  }
  /**
   * Creates a button.
   * @param text the message to be displayed by the button.
   * @return the created button.