Question: I need a simple Java application that can read text files a list of points in two-dimensional space and display those points in a graphics
I need a simple Java application that can read text files a list of points in two-dimensional space and display those points in a graphics window with lines connecting points as they appear in the text file. The points will be provided as pairs of integers representing the X and Y positions in a Cartesian coordinate system. The first line of the text file will be an integer indicating the number of point positions, N. The next N lines will be a pair of values (one point per line), each value preceded by zero or more spaces with the two values separated by a comma. The program needs a File Open dialog box to find the text file and read the points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
