The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

JList distances...

Posted by Steve on May 18, 2001 at 1:45 PM

I want to create a JList with Swing and
my list - elements consist of three Strings, which
difer in length() ;).

I want them to be placed right above one another like
1 12.12 23
22 12.122 24
133 11.1 25

so i create a new String, calculate the spaces and add
the whole element to my list.
And now the problem: I don't get the distances right,
they always lack the match a tiny bit.

I appreciate any advice,
thanks for your help,
Steve



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us