Multiple JFrames

Hi. I have a situation where I need to display multiple JFrames. I have an application with a control panel that has the ability to launch another application (via a JButton). The only problem is, the only handle I have to that other application is another JButton, so I end up with something that looks like:

JButton launchButton =new JButton();

launchButton.setAction(new AbstractAction(){

publicvoid actionPerformed(ActionEvent e){

//SomeOtherApp extends JFrame

SomeOtherApp app =new SomeOtherApp();

app.setVisible(true);

}

});

This works, but I run into all sorts of repainting problems. Since SomeOtherApp is so large, it seems to be hogging the Event-Dispatching Thread, and the app never repaints my control panel JFrame correctly. Any thoughts on how to improve this performance?

Thanks,

Jeff

[1212 byte] By [jeffastoreya] at [2007-11-27 6:02:36]
# 1
You should use a separate thread for large application & time consuming process.
AnanSmritia at 2007-7-12 16:44:13 > top of Java-index,Desktop,Core GUI APIs...
# 2
I have launched in a separate thread, but they still share the same Event-Dispatching Thread....
jeffastoreya at 2007-7-12 16:44:13 > top of Java-index,Desktop,Core GUI APIs...
# 3
Turns out it wasn't a threading problem. The other app was changing the Look and Feel so it looked like it was not properly repainting, but it is.
jeffastoreya at 2007-7-12 16:44:13 > top of Java-index,Desktop,Core GUI APIs...
# 4
Only one frame ever has focus at a time and therefore only one frame ever responds to events at a time. So neither frame should be affecting the other.
camickra at 2007-7-12 16:44:13 > top of Java-index,Desktop,Core GUI APIs...