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!

:)

Hi there GLV :slight_smile:

I wanted to ask. Which one of these external IDE would you recommend for someone who learned how to program in the Processing IDE and now has found that the programs are too long, needs more capabilities for modularity and reusability than the Processing IDE provides? For a smooth transition?

I sometimes have trouble reusing code from one sketch into another. Or I’ll look at the open windows and try to find what I did different in one vs the other… etc…

Many thanks

Hello @Gus_Fermin,

I use the Processing Development Environment (PDE) for most of my work.
It is simple and does what I need it to do and I often share work with others and easy to demo.

I keep my tabs portable and reusable by keeping related imports, declarations, comments etc. in the tab (often commented) for reference later.
Be sure to add some versioning with comments to keep track of these.

It all gets resorted when generating the Java files in the end.

I have managed to get up and running with all of these as a challenge but have not stuck with any one for long. I do enjoy a good challenge!
VS Code is showing some promise and will explore further as time permits.

VS Code can be used directly for Processing sketches:

Debugging was limited and I could not click on a method and link to a reference.

VS Code can be used with Java code and importing Processing as done here:

Experience has helped me navigate through each one of these.
It can be a challenge and daunting for a new user.

It has been on my to do list to better manage my code and in the same boat (predicament?) as you.

My first effort with Eclipse was not so smooth and there was a steep learning curve and I prevailed.
There was an Eclipse tutorial on the Processing website at the time but no longer.
This may give some insight:

Once I got up and running it was easier with another development environment.

This would be worthy as a separate topic and others with more experience may have insights.

Have fun!

:)

2 Likes