Blurring 1px border

Kevin Rushforth kevin.rushforth at oracle.com
Wed Aug 19 15:28:32 UTC 2015


Thanks for confirming. We have at least one other example of a similar 
issue that still happens in 8u60:

https://bugs.openjdk.java.net/browse/JDK-8133826

Can you please file a new bug? Your issue may or may not be the same as 
JDK-8133826, so it would be good to have another test case.

Thanks.

-- Kevin



Konstantin Pasko wrote:
> Hi Kevin,
>
> sorry for not mentioning that: it's JDK8u60.
> I've just double checked and reinstalled it from oracle.com 
> <http://oracle.com>.
>
> P.S. I also attache the screenshot.
>
> Regards,
> Konstantin Pasko
>
> 2015-08-19 16:40 GMT+02:00 Kevin Rushforth <kevin.rushforth at oracle.com 
> <mailto:kevin.rushforth at oracle.com>>:
>
>     What version of the JDK are you using? We fixed bugs in this area
>     in 8u60, which may (or may not) have fixed this.
>
>     -- Kevin
>
>
>     Konstantin Pasko wrote:
>
>         Hi guys,
>
>         I've found a very strange thing about JavaFX and borders.
>
>         If an element has "*-fx-border-width: 1 1 1 1;*", then the
>         border will be a
>         bit blur (not exactly 1px).
>         But if it's declared as "*-fx-border-width: 0 1 1 1;*", then
>         the border is
>         perfectly sharp (exactly 1px).
>
>         I've attached java class and css, that shows this effect.
>
>         As a workaround I defined border as: *-fx-border-width: 0 1 1
>         1, 1 0 0 0;*
>         But if the border has rounded corners, this workaround (even with
>         border-insets) produces different rounded corners.
>
>         This is a big problem for us (at least for my UX-designer :)
>         ), because it
>         doesn't look good. Especially when we style TextField, which
>         should have
>         1px dark border, white background and shadow effect around it
>         -- it looks
>         dirty with this blurring.
>
>         Do you have any ideas why it's happening?
>
>
>         Regards,
>         Konstantin Pasko
>          
>
>
>
> ------------------------------------------------------------------------
>


More information about the openjfx-dev mailing list