Otherwise you can design HTML pages such that text box take the size as input and then u pass the value to applet (not sure if the second part is possible)
Please read our naming policy and change your displayed name accordingly.
I think this isn't the forum to get the better replies to your question because Applets aren't part of the objetives for the exam.
Try not doing cross post.
This question belongs to the Java in General (Beginner) forum.
I'm moving this discussion there.
Originally posted by Gbcobra:
I have to write an applet that asks for 4 arguments and using drawRec then it draws a rectangle. ... How do I get the numbers that were entered by the user to draw the rec? I have written everything else just stuck on the end when it actually draws the rectangle.
When you get the numbers from the user, you assign them to variables. Then you use those variables in the drawRect(int x, int y, int width, int height) method.
[ September 23, 2002: Message edited by: Marilyn de Queiroz ]