Applet

Draw 3D Rectangle & Square in Applet Window Example

Example Output

Want to learn quickly?
Try one of the many quizzes. More than Java 400 questions with detailed answers.

Add Comment

  • how to call this function…i mean how can u pass the argument ‘g’
    u cant instantiate any instance of graphics before calling the function so that u can pass that instance as an argument to the function .
    Graphics g = new Graphics(); // this is wrong
    even if u will do
    Graphics g =getGraphics();
    will give an error as it is not initialised
    please help

Sponsors

Facebook Fans