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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.