Question: 1. Write a java program which accepts input from user and draw two lines one in blue color and the other in red color.
1. Write a java program which accepts input from user and draw two lines one in blue color and the other in red color. 2. Write a java program which accepts input from user and draw a square using appropriate vertex and give Green color to the edges. 3. Write a java program which accepts input from user and draw a rectangle using appropriate vertex and give Blue color to the edges. 4. Write a java program which accepts input from user and draw a star using appropriate vertex and give green color to one side and blue color to other side.
Step by Step Solution
There are 3 Steps involved in it
Here is a Java program that accepts input from the user and draws two linesone in blue color and the other in red color Java import javaawt import javaxswing public class LineDrawing extends JPanel pu... View full answer
Get step-by-step solutions from verified subject matter experts
