I want to get the object of the currently open JFrame?

I found this

 Frame[] frames = Frame.getFrames();

Does this provide the open frames?
If so how to get the frame that i need.

Plz Help..

yes, how do you decide on which one you need? iterate over that array and compare each instance with the one you're looking for.