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

