Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Pop-up windows in Java applets

  Asked By: Joao    Date: Nov 30    Category: Java    Views: 2806
  

Does anybody know how to create a pop-up window that would, for
example, create a pop-up window when a java button is clicked?
Thanks,

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Milind Mishra     Answered On: Nov 30

try this
JOptionPane.showMessageDialog(this, "Hello World!")
or
JOptionPane.showMessageDialog(null, "Hello World!")

 
Answer #2    Answered By: Jamie Williams     Answered On: Nov 30

create the window  that you say, for example one that contains a
message named MyMessage.

inside your main applet class,

public void foo()
{
MyMessage mm = new MyMessage();
}

 
Didn't find what you were looking for? Find more on Pop-up windows in Java applets Or get search suggestion and latest updates.




Tagged: