Rectangle expands with applet frame
I've been trying to get this program to work that when I expand the applet frame the rectangle will expand with it. Any ideas on how I can fix it or any good sources worth reading. Thanks for any help.
public class blueRectangle extends Applet
public void paint(Graphics g)
Graphics2D g2 = (Graphics2D)g;
Rectangle box = new Rectangle(0, 0, 200, 100);
Color BLUE = new Color(0.0F, 0.0F, 1.0F);