Basically I want to be able to call a method i.e. drawCircle in my main method, containing arguements read in through a file. Now I have my main iterating through the data fine. I also have another class called Draw extending JPanel with paintComponent so I have a background on screen. Now I could add to this from the Draw class by typing g.fillOval or whatever but I want to do it from the main as I said above?
This would mean my code would be lots tidier and allow me to have things such as fillOval(array, array[i+1) etc in my main which would be handy.
I know this is a very simple problem, im just brain dead at the moment it seems. Any way to fix this or get around it easily enough?
This would mean my code would be lots tidier and allow me to have things such as fillOval(array, array[i+1) etc in my main which would be handy.
I know this is a very simple problem, im just brain dead at the moment it seems. Any way to fix this or get around it easily enough?