Geertjan is a DZone Zone Leader and has posted 468 posts at DZone. You can read more from them at their website. View Full User Profile

Lorem Ipsum: Now Generated in Java

  • submit to reddit
February 14th, the international day of sweet nothings, saw the release of Lorem Ipsum for Java, the new Java generator of space filler text. Never again will you need to put "aaaaa" in a demo field, or "xxxx", or something similar. Instead, you will be able to ooze the air of the Greeks of old, by generating text into your otherwise bare ui.

And all that text will not need to have been typed, or copy/pasted, or anything similar. Instead, you will be able to use Java itself to generate the above filler text. The above 5 paragraphs of high minded mumbo jumbo came about like this:

LoremIpsum ipsum = new LoremIpsum();
String words = ipsum.getParagraphs(5);


And the lorem ipsum library is quite versatile:

So not only can you choose to generate either words or paragraphs, but the exact number of words and paragraphs can also be specified. Here's looking forward to seeing lorem ipsumized space fillers in all the demos of the future!

Published at DZone with permission of its author, Geertjan Wielenga.


Xelipe Zone replied on Tue, 2008/02/19 - 12:32am

"ooze the air of the Greeks of old"


That is not Greek, it's Latin. 

Geertjan Wielenga replied on Tue, 2008/02/19 - 2:37am

Ah, Xelipe, it's all Greek to me...

Stanley Styszynski replied on Tue, 2008/02/19 - 3:54am

So simple, it's genius :)

Serkan Gunes replied on Tue, 2008/02/19 - 5:47am

On the contrary, it is neither Greek nor Latin :)

It is based on Cicero's The Purposes of Good and Evil passage but it doesn't actuallu mean anything.

Jeroen Wenting replied on Wed, 2008/02/20 - 2:48am

well, Cicero wrote in Latin...
The words themselves mean nothing (or may, but not in the context where they're used), but they're based on Latin idiom rather than Greek.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.