0

I know of the action setLocationRelativeTo(null) which centers the GUI but i want it just off center as both my GUI's are the same size and i want the user to know that they have opened a new window, thanks in advance

Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
tom bannister
  • 81
  • 1
  • 10

1 Answers1

3

Consider using setLocationByPlatform(boolean locationByPlatform).

See How to best position Swing GUIs for a demo.

setLocationByPlatform()

Community
  • 1
  • 1
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
  • 1
    +1. Did you know it is possible to 'steal' images from one thread to another? I right click on the image to copy the URL, then just dump it in an image tag in the other question or answer. Something like `..`. I hope you don't mind me editing your answer, but a picture paints a thousand words, and I suspect that seeing the end result encourages people to follow the link. :) – Andrew Thompson Feb 23 '13 at 14:21