• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in message dialog

 
sajeevi bangamuwage
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear ALL,

I want to display some results in a Text Area that is displayed on the message dialog with scrolling functionality. i can add message dialog
like this,

JOptionPane.showMessageDialog(null, "sajeevi");
but how can i add text Area to that.

please if some one know the answer reply me.

Thank you very much.
sajeevi
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sajeevi bangamuwage:

JOptionPane.showMessageDialog(null, "sajeevi");


If you look at the API, the argument types are


So you can very well do something like this



Since you have added the panel as the message, any other components which you add on the panel will also be displayed on the dialog.
 
sajeevi bangamuwage
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Maneesh Godbole ,

Thank you very much.
I did it.
It's working properly as i expected.
Thank you again.

sajeevi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!