Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Popup window event  RSS feed

 
venkatesh pendharkar
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,
I am creating a Java application in which i want to open a popup which displays some message.Currentl i am using JOptionPane.showMessageDialog(this,"msg"); method which shows dialog with OK button. But I dont understand how to fire an event in the OK button of this window. Is there any method by which i will be able to execure some code when OK button is clicked. I tried using windowClose event but it doesnt work .
Someone please help me in this.
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Alternately:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!