I’m using Netbeans’ graphical GUI-creation interface, and I’m interested in creating a 300 by 300 square with a small dot indicating a position within this square. The JPanel seemed like a good place to start, and it gives me the coordinates I need to specify the position of where to draw the dot; but I don’t know how to create such a movable dot within the framework I’m working in.
I understand that one solution would be to turn off the layout manager, but it doesn’t seem like a very good solution. I appreciate any guidance or links to useful resources 🙂
May be this