1. how to add a circle or rectangle in a jtextarea java-forums.orgimport java.awt.Graphics; import java.awt.geom.Ellipse2D; import java.awt.Graphics2D; import javax.swing.JComponent; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; public class Circle extends JPanel { int x,y,width,height; public Circle() { x = 10; y = 50; width = 100; height = 50; } public Circle(int x,int y,int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; } public void ... |