Well, I wanted to make an program that does the following:
-Displays a grid (Sort of like a sheet of graph paper)
-Draws geometric shapes on that grid
-Can draw a straight line from one point to another.
I'm pretty sure about the mathematical and techincal systems that would be applied, however I have no clue as to where/how I would generate the grid, and how to draw the lines, etc.
I could use a few pointers as to what I should read up on.
If you check out the API class for Graphics you will notice it has built in methods like drawLine() and drawPolygon() which you will find useful.
I pseudo code
1) Subclass JPanel
2) Override paintComponent
3) In your overridden paint component do all custom painting operations like drawing the grid, shapes etc
4) Use an instance of your panel in the application