• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to wrap large message of JOptionPane.showConfirmDialog in scrollbar ...  RSS feed

 
Mohammed Ajmal
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using JOptionPane.showConfirmDialog(..) to display a message where sometimes the message is so big that it displays the dialog with buttons not visible properly to the user. In such cases the message should get wrapped and should appear in the scrollbar.

Is there any way to wrap the message and display properly.

Or Should we have to write out own dialog box for acheiving the same.

Thanks in advance for your inputs.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mohammed Ajmal
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Craig,

Thanks very much for your code,it is useful to me and solve my problem.

--
Ajmal.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!