I've made a game using a jFrame with components. Is there a way that I can make the JFrame bigger, but using a square aspect so that the length always equals the width when being dragged? 

Any help is appreciated. 

Cheers