I imagine it must be difficult to position an object that has no size! ;)
Type: Posts; User: dlorde
I imagine it must be difficult to position an object that has no size! ;)
If you want any more help, you're going to have to tell us what class you're using for 'frame' and what the environment is. The stuff you've been given works fine on standard Java frames & windows in...
Why reinvent the wheel?
// center frame on screen
frame.setLocationRelativeTo(null);