Tag Archives: Rectangle

how to make Rectangle in JFrame in java

here is the simple java code to showing how to make a rectangle in JFrame in java. import javax.swing.JFrame; import java.awt.Graphics; import java.awt.Color; class DrawRectangle extends JFrame { public DrawRectangle() { //to Set JFrame title super(“Draw A Rectangle In JFrame”); … Continue reading

Posted in ..BASIC.. | Tagged ,