Problem with Dialog in Applet

F

Frank Wood

Hi,

I am creating an applet that contains a button. When it's clicked, I
simply want to present a message dialog stating "Button clicked".
Something like:

JOptionPane op = new JOptionPane();

op.showMessageDialog(null,"Applet Testing","Button
Clicked",JOptionPane.INFORMATION_MESSAGE);

Each time this code executes, the browser (in this case, IE 6) freezes
up and I have to shut it down and restart. My guess is this has
something to do with security but I haven't a clue how to solve it if
so. Of course, even if it doesn't, I don't have a clue how to solve
it. :)

Any help would be appreciated.

thanks,
Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top