Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing string in a lined format

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I read in a string s with 3 colunms of data from a file as such:

Column1 Column2 Column3
data1 date12 data11
data2...


And i put it in a JScrollPane. The problem is that they don't line up. I changes the font to Courier and it works! BUT it takes a very long time to output. ( Font theFont = new Font("Courier", Font.PLAIN, 8);
big.setFont(theFont);


Any suggestions? aRE they other monospaced font types.

Thanx
 
Take a look at the JTable object instead of your JScrollPane.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top