@ -1,6 +1,5 @@
package com.fr.design.utils.gui ;
package com.fr.design.utils.gui ;
import com.fr.base.BaseUtils ;
import com.fr.base.vcs.DesignerMode ;
import com.fr.base.vcs.DesignerMode ;
import com.fr.design.constants.UIConstants ;
import com.fr.design.constants.UIConstants ;
import com.fr.stable.Constants ;
import com.fr.stable.Constants ;
@ -40,7 +39,10 @@ public class GUIPaintUtils {
g2d . drawLine ( x , y , x , height - 1 ) ;
g2d . drawLine ( x , y , x , height - 1 ) ;
g2d . drawLine ( x , height - 1 , x + 3 , height - 1 ) ;
g2d . drawLine ( x , height - 1 , x + 3 , height - 1 ) ;
} else {
} else {
g2d . drawRoundRect ( x , y , width - 1 , height - 1 , UIConstants . ARC , UIConstants . ARC ) ;
double offsetX = Math . min ( GraphicsEnvironment . getLocalGraphicsEnvironment ( ) . getDefaultScreenDevice ( ) . getDefaultConfiguration ( ) . getDefaultTransform ( ) . getScaleX ( ) - 1 , 0 . 5d ) ;
double offsetY = Math . min ( GraphicsEnvironment . getLocalGraphicsEnvironment ( ) . getDefaultScreenDevice ( ) . getDefaultConfiguration ( ) . getDefaultTransform ( ) . getScaleY ( ) - 1 , 0 . 5d ) ;
Shape shape = new RoundRectangle2D . Double ( x + offsetX , y + offsetY , width - 1d , height - 1d , UIConstants . ARC , UIConstants . ARC ) ;
g2d . draw ( shape ) ;
}
}
g2d . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_OFF ) ;
g2d . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_OFF ) ;
} else {
} else {