From 8729a061e4138420ec8a33a5ab5f4378eec2097b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 21 Dec 2009 16:23:41 +0000
Subject: [PATCH] Fix for issue 4413 (setup should use scroll panes in its panels)
---
opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java b/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
index f880b77..ef3ebd7 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
+++ b/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.
--
Gitblit v1.10.0