Why is my line not smoother?

Apologies for the noob question, but … when I run the following sketch in the Processing IDE I get a smooth line but when I attempt the same thing using Java and IntellijIDEA I get something a lot more pixellated as shown in this screenshot:

What is the obvious thing that I’m not doing right?

It is not always so obvious,

Related topics:


1 Like

Many Thanks for your help.
Solution was in the first of the links you were kind enough to post. (Adding System.setProperty(“sun.java2d.uiScale”, “1”); as the first line in main function seems to solve things.)

Very pleased to get it sorted but have to admit it kind of puts me off using Java+3rd party IDE instead of Processing’s own IDE - makes me wonder what other gotchas await. :slight_smile:

Thank You again for your help. Much appreciated.

1 Like

There are challenges but it gets easier.

I have used Eclipse, Intellij IDEA and now VS Code. NetBeans as well.

VS Code was a challenge but once I got over the hurdles I am up and running!

Initial exploration (have come a long way since) using VS Code:
Give some examples (Unfolding 0.9.6 library for JavaFX) - #5 by glv < I am still using it!