Try following.

Component[] components = gameFrame.getComponents();
 for (int i = 0; i &lt; components.length; i++) {
  if (components[i] instanceof JTextField) {
     //DO what you want with the text field here 
   }
}


Hope it helps.

Is there anyway to return particular elements from JFrame?
I am running a iOS project using the isgl3d framework for showing pod files.

I have a stylish car with 0.5 alpha windows, that I wish to render on a camera background, seeking some augmented reality goodness.

The alpha on the windows looks okay, but when I add the object, I notice that it renders the entire object transparently, where the windows are. Including interior of the car.

Like so (in example, keyboard can be seen through the dashboard, seats and so on. should be solid)



The car interior is a seperate object with alpha 1.0.

I would rather not show a "ghost car" in my project, but I haven't found a way around this.

Have anyone encountered the same issue, and eventually reached a solution ?
