Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

showMessageDialog

Status
Not open for further replies.

mhall

Technical User
Sep 26, 2000
13
0
0
GB
I am using a JOptionPane to display a message, my problem is that I would like to display this message on several lines
e.g.

text1 =1
text2 =2

instead of text1 = 1 and text2 = 2

Thanks

Matt
 
Have you tried the escape sequence character for return key?

That is put \n in your string.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top