Topics in J-holomorphic maps and gauge theory