Article View: borland.public.jbuilder.java.swing
Article #7525Re: Jlist doesn't show all values
From: Khurram Shakir
Date: Tue, 16 Jan 2001 14:18
Date: Tue, 16 Jan 2001 14:18
43 lines
2194 bytes
2194 bytes
It is possible that I couldn't understand your problem correctly, but I have an opinion that ,you dont need to extend JList if you want to use Custom Cell Renderer. Just use JList Object itself which has appropriate methods of defining custom cell renderers. I am sending the link of JList tutorial, hope this will help you understand the JList architecture. http://java.sun.com/docs/books/tutorial/uiswing/components/list.html Thanks -- Khurram Shakir Sun Certify Programmer for Java 2 Platform "Inge" <inge.luyckx@idp.be> wrote in message news:9418he$j5d8@bornews.inprise.com... > I've created myList which extends from JList. I ' ve defined a custum > listCellRenderer for it which extends a JLabel, but specific characteristics > like color, font, layout,etc. are added to it. > > The data is added to the list through the use of a thread and every element > is added immediately to the listmodel. After adding an element I > specifically call invalidate() an repaint(0), but sometimes elements get > lost. > > When I drag an element to an incomplete list, this element is added and all > "lost" elements are suddenly visible as well. > > Should I call another method instead of repaint(), or should I call it at a > different place, ... ? > > If someone knows a quick solution, I'd be very gratefull, > > Kind regards, > > Inge > > >
Technical Details
Message-ID:
<3a6456d4_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!203.135.24.27References:
<9418he$j5d8@bornews.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,90ba39ff38bc5af7 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-16 06:14:03 PST From: "Khurram Shakir" <kshakir@mail.com> Newsgroups: borland.public.jbuilder.java.swing References: <9418he$j5d8@bornews.inprise.com> Subject: Re: Jlist doesn't show all values Date: Tue, 16 Jan 2001 19:18:23 +0500 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 203.135.24.27 Message-ID: <3a6456d4_2@dnews> X-Trace: 16 Jan 2001 06:12:36 -0800, 203.135.24.27 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!203.135.24.27