Frame to be displayed at the bottom right corner of screen?

I want my frame to be displayed at the bottom right corner of screen, how can I do that?
[95 byte] By [crazygala] at [2007-10-3 2:48:00]
# 1
setLocation(screenwidth-framewidth,same for height)
Michael_Dunna at 2007-7-14 20:36:47 > top of Java-index,Java Essentials,Java Programming...
# 2
where do I have to use this command?
crazygala at 2007-7-14 20:36:47 > top of Java-index,Java Essentials,Java Programming...
# 3

> where do I have to use this command?

Did you?

a) read the API for a description of what the command does

b) search the forum using "setlocation" as the keyword to see examples of how it should be used. Of course if you search the Swing forum, which is where Swing related questions should be posted, you would have a better chance of finding posted examples.

camickra at 2007-7-14 20:36:47 > top of Java-index,Java Essentials,Java Programming...