added constructor to JBox