Related questions
Drawing in Java using Canvas
I want to draw in Java's Canvas but can't get it work because I don't know what I'm doing. Here's my simple code:
import javax.swing.JFrame;
import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Color;
public …
Java2D: Increase the line width
I want to increase the Line2D width. I could not find any method to do that. Do I need to actually make a small rectangle for this purpose?
repaint() in Java
Possible Duplicate:
Java GUI repaint() problem?
I write a Java code, but I have a trouble with GUI problem. When I add a component into JFrame object, then I call repaint() method in order to update the GUI but it …