As i paint any figure in Java, the lines don't look smooth and I clearly see pixels. Any not very difficult solutions?

Cast your Graphics reference to Graphics2D and turn on anti-aliasing:

Graphics2D g2D = (Graphics2D)g;
g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
commented: That really solves my issue! +1

Fantastic!!! Thanks!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.