Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hi everyone, Need help with JOption Pane. =)  RSS feed

 
Mooker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone. This is my first time posting a question. I hope you guys can really enlighten me. =)

Here it goes.

I want to display a JOptionPane and I can't seem to do it. JOptionPane.showMessageDialog(this, "I want to display this =)", "Display", JOptionPane.INFORMATION_MESSAGE);
 
Horatio Westock
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What error do you get?

When you pass 'this' as the first argument, is this a Component? You could pass 'null' instead.
 
Mooker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok. I will try it right away and see whether does it work. Thanks for your reply anyway. I really appreciate it =D
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing/AWT...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!