0
find errors and solve
I have practicals tomorrow pls solve as fast you can pls https://code.sololearn.com/cThU569UoA0C/?ref=app https://code.sololearn.com/cThU569UoA0C/?ref=app
5 Answers
+ 1
the result should be a smiley,rectangle inside oval shaded,triangle
+ 1
pls solve this and send correct answer pls
+ 1
this is one of my practical so try to solve pls
+ 1
R Yuvaraj there are wrong spellings
g.draw RoundedRect(20,20,140,100,10,10);
should be
g.drawRoundRect(20,20,140,100,10,10);
and
g.filledOval(65,43,50,50)
should be
g.fillOval(65,43,50,50)
and as others suggested, don't use applet and just modify this tutorial:
https://www.javatpoint.com/Graphics-in-swing
I successfully compiled and ran the codes below on my laptop. The second version used Graphics2D for anti-aliasing.
Unfortunately Sololearn cannot display them.
I trust you know how to compile and run a java class and you have the necessary sdk installed.
https://code.sololearn.com/c4ZI7BM3pRE5/?ref=app
https://code.sololearn.com/cxSNFAKx95Lw/?ref=app