• Post Reply Bookmark Topic Watch Topic
  • New Topic

joptionpane  RSS feed

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
can u knindly tell me how to perform action in a joptiona pane. i mean say to perform one action for the cancel button and another to the ok button.
thanks
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ransika,
This is straight from the API docs for JOptionPane:

Direct Use:
To create and use an JOptionPane directly, the standard pattern is roughly as follows:

Hope this helps,
Michael Morris
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!