Same Area: Triangle & Square

Given a triangle, how do you construct a square with the same area using a dynamic geometry software?