|
-
Jul 9th, 2007, 06:01 PM
#1
Thread Starter
Hyperactive Member
Text formatting issue
Here is an example of how my output looks like:
| 217543 | Essen-Kettwig | Other | Germany |
| 217567 | Neustadt | Rheinland-Pfalz | Germany |
| 217585 | Crottendorf | Sachsen | Germany |
as you can see they dont line up exactly. Whats an easy way for me to format these so they line up perfect? So they are more readable. Thanks
-
Jul 9th, 2007, 09:10 PM
#2
Re: Text formatting issue
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 9th, 2007, 10:00 PM
#3
PowerPoster
Re: Text formatting issue
Between each two segments of letters/digits.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Jul 10th, 2007, 01:33 PM
#4
Thread Starter
Hyperactive Member
Re: Text formatting issue
i tried this with no success:
Code:
while (st.hasMoreTokens()) { model.addElement("|" + st.nextToken() + "\t" + "|" + st.nextToken() + "\t" + "|" + st.nextToken() + "\t" + "|" }
did I do something wrong?
-
Jul 10th, 2007, 02:09 PM
#5
Frenzied Member
Re: Text formatting issue
Are you sending the text to the console or is this in a textarea?
-
Jul 10th, 2007, 02:32 PM
#6
Thread Starter
Hyperactive Member
Re: Text formatting issue
im creating a model and then setting it to a jList, so I can see the items in a list box. I want them to look nice in the list box
-
Jul 10th, 2007, 02:41 PM
#7
Frenzied Member
Re: Text formatting issue
If you want it to look nice go for a JTable. It will align the items for you in a nice fashion.
-
Jul 10th, 2007, 02:48 PM
#8
Thread Starter
Hyperactive Member
Re: Text formatting issue
wow, I didnt even notice that there. i'll change it around, thanx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|