please help me, in applet.. how to make a square..? and how can i move it..like a rectangle movement..?

Member Avatar for coil

Check out the Rectangle API here. A square's just a rectangle with equal side lengths.

As for movement, if you know how to move a rectangle, or any other object, it's the same with squares. Just adjust the xpos and ypos of the square.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.