• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

LinePrinter.java

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This class simulates a line printer and allows you to print text strings easily from Java.
Tell it the font, feed it some text and you have a printed (8.5 x 11) document.
Portrait or Landscape, you can also change the font when issuing a form feed.

Print Example is public domain

Link: http://www.datavirtue.com/Software/dev/LinePrinter.java

 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Data Virtue",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

thanks,
Dave
 
Data Virtue
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I went off about this before and they left my name in place. I logged in just fine. Also if anyone cares to look you can end up with my home adress in about two clicks by visiting the website seen in my signature.

Again, I tried to follow your rules even though I log in everywhere with the name DataVirtue; my "real" name was already taken. Data Virtue is a legal name for me anyway as I have stated before.

Your forums are nice but please quit accusing me of ficticious names when in fact it is a "real" & legal name for me to operate under.

I think most of my posts are now dealing with the ficticious name issue.

Killroy, killroy...

Sean
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic