How to take JTextField input to then draw using the Graphics library?
I am currently trying to display a world map, on to which I want to draw dots in the centroids of each country. I have already found all the necessary coordinates, but my main issue is actually drawing those coordinates based on user input. Instead of using a scanner and taking system input, I am receiving a string in JLabel, that I then want to find the associated coordinate for in a hash map that I created. I am able to receive the input using an ActionListener, but don’t know how to approach then using that input to draw something.