Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

How to customize the displaying of a JList

Thread view: 
kito - 30 Jul 2006 21:01 GMT
Hi,
I've a question regarding JLists. I saw in a program a list customized
like in the pics below:
http://mitglied.lycos.de/kito85/webspace/sample.JPG
http://mitglied.lycos.de/kito85/webspace/sample2.JPG

How can one achieve this, because I would like to use this in an
application of mine!

thanks
kito
IchBin - 30 Jul 2006 22:32 GMT
> Hi,
> I've a question regarding JLists. I saw in a program a list customized
[quoted text clipped - 7 lines]
> thanks
> kito

Can not tell.. your links are incorrect.

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA              http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
kito - 30 Jul 2006 23:08 GMT
Strange,

I checked the links and they are fine!

> Can not tell.. your links are incorrect.
>
[quoted text clipped - 4 lines]
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor,  Regular Guy (1952-)
IchBin - 31 Jul 2006 04:29 GMT
> Strange,
>
[quoted text clipped - 8 lines]
>> 'If there is one, Knowledge is the "Fountain of Youth"'
>> -William E. Taylor,  Regular Guy (1952-)

Not that it matters now but when I select either of those two links I get:

Not Found

The requested URL /kito85/webspace/sample.JPG was not found on this server.
Apache/2.0.55 (Win32) mod_jk/1.2.15 PHP/5.2.0-dev SVN/1.3.0 DAV/2 Server
at mitglied.lycos.de Port 80

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA              http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
kito - 31 Jul 2006 08:10 GMT
Thanks a lot at all!
I'm going to try it out now.
Thomas Fritsch - 30 Jul 2006 23:35 GMT
> I've a question regarding JLists. I saw in a program a list customized
> like in the pics below:
[quoted text clipped - 3 lines]
> How can one achieve this, because I would like to use this in an
> application of mine!

You can do it by your making your own implementation of ListCellRenderer and
setting that onto the JList.
To find examples google for:
 JList +ListCellRenderer

Signature

Thomas

hiwa - 31 Jul 2006 02:23 GMT
kito のメッセージ:

> Hi,
> I've a question regarding JLists. I saw in a program a list customized
[quoted text clipped - 8 lines]
> kito
>From the API documentation for javax.swing.JList:
<quote>
See How to Use Lists  in The Java Tutorial  for further documentation.
Also see the article Advanced JList Programming  in The Swing
Connection.
</quote>
Find the descriptions on cell renderers from the linked documents.
Real Gagnon - 31 Jul 2006 04:12 GMT
"kito" <juri.strumpflohner@gmail.com> wrote in news:1154289661.599539.97510
@s13g2000cwa.googlegroups.com:

> I've a question regarding JLists. I saw in a program a list customized
> like in the pics below:
> http://mitglied.lycos.de/kito85/webspace/sample.JPG

See "Have images in a JList" at
http://www.rgagnon.com/javadetails/java-0203.html

Bye.
Signature

Real Gagnon  from  Quebec, Canada
* Looking for Java or PB code examples ? Visit Real's How-to  
* http://www.rgagnon.com/howto.html



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.