Displaying a drawing defined in data file.
Posted on 2003-11-22
Any websites that give good information and general tips would be appreciated. Basically i need to read data from a file with information
CIRCLE 50 100 75 // draw a circle x=50 y=100 radius=75
LINE 25 50 100 100 // line with end points(25,50) and (100,100)
and display it onto a GUI.
methods i think i will need are BufferReader, StringTokenizer and parseInt(). The data file will be interpreted to create a shape object and placed in an ArrayList.