• Post Reply Bookmark Topic Watch Topic
  • New Topic

pop up box - JDialog??  RSS feed

 
roy williams
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple Jframe with a button, when i click the button I have it doing a System.out.println("you clicked the button");
but i would like a message box to pop up for saying that instead what is the simpliest way to get that done. thank you
 
Greg Charles
Sheriff
Posts: 3014
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JOptionPane.showMessageDialog(this, "My Message");
("this: refers to the JFrame.)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!