Link to home
Start Free TrialLog in
Avatar of JAVAnewbie
JAVAnewbie

asked on

printing in java II

hi, regarding my previous question about 'printing in java' https://www.experts-exchange.com/questions/21437358/printing-in-java.html

can anyone help me with restricting the char to certain number (eg: 64 char per line, 80 char per line, n char per line).. the number of char is user define.

tks
Avatar of JAVAnewbie
JAVAnewbie

ASKER

let's say i have a poem or a paragraph of some news, and i would like to print them out. however, before i print, i would like to be able to set how many char per line that i am going to print (50, 100, 150 chars)

can this be done? if can, please help.

tks
hi again.

yes u can do that, using my GUI.
before displaying text in window. u can count characters and when 50 let us say, found then append with '\n'  (new line).
then display your data.
or u can set ur pring margin
ASKER CERTIFIED SOLUTION
Avatar of Naeemg
Naeemg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
count characters?
do u mind to provide me with an example?
opps, i think i see it now.. no example needed. tks