• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom message box using Swings

 
sahitya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am developing a GUI application. In that,user will select the date and when I click a button, that date should appear in a message box.

Date is retrieved correctly. But I am not able to display the date in message box. How to display date in a message box?

Using JOptionPane, I can only display static messages.

Please help. Let me know if you need any other information.

Thanks in advance.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Using JOptionPane, I can only display static messages.

sounds like you might have all your code in main().

simple demo

 
sahitya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..Its working
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic