Basic graphics package -help

I want to develop a basic graphics package by using Java applets. I have to use shape class hierarchy and inheritance( 2D shapes such as squares, rectangels, triangles and circles ). And the program will interact with the user ( such that set the position, size, shape, etc. )

I am newbie on Java and this project is very important for me. Can you please give me an example where and how to define string processes ( ie. x ,y coordinates, width and height etc. ) , what should be in sub classes ( circle,square, etc. ) and how to use switch case?

Thanks,

[574 byte] By [Denthraxa] at [2007-11-27 1:03:43]
# 1
This excellent online free book Thinking in Java by Bruce Eckelshould have plenty of examples and covers all major Java syntax: http://www.mindview.net/Books/TIJ/
KathyMcDonnella at 2007-7-11 23:38:48 > top of Java-index,Security,Cryptography...
# 2
You're right. I have this book. I checked but i didn't find any examples.
Denthraxa at 2007-7-11 23:38:48 > top of Java-index,Security,Cryptography...
# 3

It certainly wouldn't have examples about Shape and Coordinates.

But the basic idea of inheritance (and how to choose what to put into

the parent class, what to put into the subclasses...), how to have String fields,

how to have integer fields, and how to use the switch statement are all there.

Edit: By the way, what do you mean by "String processes"? Perhaps I'm misunderstanding you.

KathyMcDonnella at 2007-7-11 23:38:48 > top of Java-index,Security,Cryptography...