Results 1 to 3 of 3
Thread: Centering text of output
- 10-02-2008, 08:44 PM #1
Member
- Join Date
- Sep 2008
- Location
- Florida
- Posts
- 5
- Rep Power
- 0
Centering text of output
Did a search and came up empty. Also hunted on google but nothing of consequence. Does anyone have the answer on how to center the output (text)? The output is just the name of some states and such, nothing complicated. I would post my code but it is lengthy and I don't think it would help. Thanks in advance!
- 10-02-2008, 09:03 PM #2
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 5
not sure what you mean by centering text of output. is this output to the console or to a file? if you want to center output, it will have to be dependent on the width of whatever it is output to. for one, i know not all files or consoles have a limit on line length. if you really wanna look further into it, you just have to indent each line with some kind of ratio dependent on a max line length and the length of the line to be output. where you get this length is up to you.
- 10-02-2008, 10:08 PM #3
Similar Threads
-
find and replace text from a text file
By gezzel in forum New To JavaReplies: 2Last Post: 09-19-2008, 04:04 PM -
Unsupported Content-Type: text/html Supported ones are: [text/xml]
By luislopezco in forum Advanced JavaReplies: 0Last Post: 05-26-2008, 04:26 PM -
Why the output is always zero
By mehrotra.chitij in forum New To JavaReplies: 12Last Post: 04-25-2008, 04:05 AM -
Text Output for a library
By dream_noir in forum Advanced JavaReplies: 0Last Post: 04-14-2008, 05:31 AM -
Simply output the result to a text file.
By silvia in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks