7 Replies Latest reply on Nov 12, 2012 11:10 PM by bouye-JavaNet

    JavaFX Canvas : "fuzzy" lines compared to Swing


      I would very much like to port my Swing application (that draws on a JComponent) to JavaFX. But to my dismay the JavaFX Canvas does not draw as sharp and thin lines as Swing does.

      Lines drawn with the same thickness is noticeably thicker (and "fuzzier") on the JavaFX Canvas than the equivalent Swing lines. I have tested both on Windows (7) and Linux, both 64-bit.

      In my JavaFX app, I proceed like this: gc.beginPath() --> gc.moveTo(..) --> gc.lineTo() --> gc.stroke().

      Is there a setting or something I am missing?