Drawing Hexagon Using Java error
You were drawing on the JFrame. Never draw on a JFrame. Always draw on a JPanel. Here’s the GUI. Here are the major changes I made. I moved the creation of the hexagon into its own class, Hexagon. That way, you can create a List of Hexagons if you want. I moved the creation of … Read more