File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to save a paragraph in a string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to save a paragraph in a string " Watch "How to save a paragraph in a string " New topic
Author

How to save a paragraph in a string

Subitha Sangar
Greenhorn

Joined: Jan 10, 2006
Posts: 8
How to save a paragraph (multi line) in a string.. then im going to display that string as a showMessageDialog. My problem is i can save in a string as a single line or use the special symbol like \n or \t. if i do so i have to type every thing in a line.. how can i type is like a paragraph and then show the message.

String details = " fffffffffffffffffffffffffffffffff ffffffffffffffff
ffffffffffffffff fffffffff fffffffffffffff ffffffff"

JOptionPane.showMessageDialog(null,ab,"deatails",JOptionPane.INFORMATION_MESSAGE);
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780

And if your string is long, whether or not is has newlines in it, you can break it up as follows.


There is no emoticon for what I am feeling!
Subitha Sangar
Greenhorn

Joined: Jan 10, 2006
Posts: 8
Thanks for your idea Jeff.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to save a paragraph in a string