Rob Camick wrote:Cross posted: http://forums.sun.com/thread.jspa?threadID=5427332&tstart=0
Be Forthright When Cross Posting To Other Sites
Is this related to the window you want to open when the button is clicked? I had assumed that you want to open a Swing window, but this looks like you want a new browser window; please clarify which of these it is.
Ulf Dittmer wrote:You'll need to add an ActionListener to the JButton that opens a new JFrame. There's nothing applet-specific about the newly-opened window (except that it shows a little message telling the user that this is an applet-opened window).
You may also want to disable the button after the window has been created, so that clicking it repeatedly doesn't open multiple windows.
Ulf Dittmer wrote:You posted close to 600 lines of code. As I said, that's way too much for people to go through and try to make sense of. At least tell us the lines numbers and variable names that you're talking about, and -just as important- what is and isn't happening according to your expectations.