svn commit: r15750 - trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: dthompson
Date: 2008-09-20 04:35:50-0700
New Revision: 15750

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java

Log:
Issue 4430: Fixed scroll bar from obscuring text on initial values.

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java?view=diff&rev=15750&p1=trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java&r1=15749&r2=15750
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java	2008-09-20 04:35:50-0700
@@ -28,6 +28,7 @@
 
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
+import javax.swing.ScrollPaneConstants;
 
 import org.argouml.i18n.Translator;
 import org.argouml.model.Model;
@@ -87,8 +88,11 @@
                 this, "initialValue");
         JPanel initialPanel = createBorderPanel(Translator
                 .localize("label.initial-value"));
-        initialPanel.add(new JScrollPane(new UMLExpressionBodyField(
-                initialModel, true)));
+        JScrollPane jsp = new JScrollPane(new UMLExpressionBodyField(
+                initialModel, true));
+        jsp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
+        jsp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
+        initialPanel.add(jsp);
         initialPanel.add(new UMLExpressionLanguageField(initialModel,
                 false));
         add(initialPanel);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.