I'm trying to share a JFrame between instances of a Lotus Notes Java agent. I would like to re-use my window instead of recreating it each time my agent executes.
My class, RaiseJira, extends JFrame, which extends Frame. When I run the following code, I get a ClassCastException.
Frame[] fs = Frame.getFrames();
for (int i = 0; i < fs.length; i++) {
    if (fs[i].getName().equals("RaiseJira")) {
        RaiseJira f = (RaiseJira) fs[i];
    }
}
If I cast it to a JFrame, it works fine and I have access to the JFrame methods. I'm trying to pass data to it using RaiseJira methods, so it needs to be of the correct type.
Am I missing something with downcasting? Also, am I missing an easier way of passing data to a common JFrame from separate agents?
 
     
     
    