Revision: 1713
          http://svn.sourceforge.net/spring-rich-c/?rev=1713&view=rev
Author:   mathiasbr
Date:     2007-02-12 04:54:03 -0800 (Mon, 12 Feb 2007)

Log Message:
-----------
better placement of the validation marker

Modified Paths:
--------------
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/builder/support/OverlayValidationInterceptorFactory.java

Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/builder/support/OverlayValidationInterceptorFactory.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/builder/support/OverlayValidationInterceptorFactory.java
  2007-02-12 12:31:39 UTC (rev 1712)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/builder/support/OverlayValidationInterceptorFactory.java
  2007-02-12 12:54:03 UTC (rev 1713)
@@ -41,10 +41,7 @@
  */
 public class OverlayValidationInterceptorFactory implements 
FormComponentInterceptorFactory {
 
-    private int textCompHeight;
-
     public OverlayValidationInterceptorFactory() {
-        textCompHeight = new JTextField().getPreferredSize().height;
     }
 
     public FormComponentInterceptor getInterceptor(FormModel formModel) {
@@ -79,9 +76,7 @@
         }
 
         private void attachOverlay(MessageReportingOverlay overlay, JComponent 
component) {
-            int yOffset = component.getPreferredSize().height;
-            InterceptorOverlayHelper.attachOverlay(overlay, component, 
SwingConstants.NORTH_WEST, 0, Math.min(yOffset,
-                    textCompHeight));
+            InterceptorOverlayHelper.attachOverlay(overlay, component, 
SwingConstants.SOUTH_WEST, 0, 0);
         }
     }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to