Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "steve" Subject: Re: Flickering JList List Message-ID: X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <1168677465.051414.30460@q2g2000cwa.googlegroups.com> References: <1168677465.051414.30460@q2g2000cwa.googlegroups.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 53 Date: Wed, 27 Apr 2011 15:28:53 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918133 96.60.20.240 (Wed, 27 Apr 2011 10:28:53 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:28:53 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:673 To: comp.lang.java.gui On Sat, 13 Jan 2007 16:37:45 +0800, Andrew Thompson wrote (in article <1168677465.051414.30460@q2g2000cwa.googlegroups.com>): > steve wrote: >> On Sat, 13 Jan 2007 02:32:24 +0800, Andrew Thompson wrote > >>> Don't mix Swing with AWT. > ... >> it could be your mix of AWT & Swing, but I even get away with that. > > I've done it occasionally as well, usually when it > seemed unavoidable, 'without problems' (the > inverted commas are meant to indicate - but > not with images in a list cell renderer, and not > that I have been able to test on Mac. - no Mac. > available) > > I think the problem comes up mostly when a > 'lightwieght' tooltip or menu might appear above > or 'over the top of' a heavyweight component. > > AFAIU, it does not impact lightweight 'root level' > components such as JFrame, JOptionPane or > JDialog - they can appear over the top of AWT > components in other root level containers without > problem. > > OTOH - the OP's mixing of Swing and AWT seems > unnecessary in this code example, and would be > the first thing I'd look into (i.e. change). > > Exactly why that would cause the flickering the > OP reported, I cannot say. (So I do not hold a > *high* confidence that changing the Canvas to a > (e.g.) JPanel will solve the problem.) > > Andrew T. > iv'e seen it triggered when the panel in question is not the uppermost window of the screen, or poorly written code that keeps firing the list so often that the mac cannot keep up. but as you quite rightly say, he should try not to mix and match his AWT & Swing. Steve --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24