Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #664

Re: Flickering JList List

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: Flickering JList List
Message-ID <1168677465.051414.30460@q2g2000cwa.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <eoa0ii02f5c@news2.newsguy.com>
Date 2011-04-27 15:28 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
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.

---
 * 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

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Flickering JList ListCell "GBachhaus" <gbachhaus@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
  Re: Flickering JList List "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
    Re: Flickering JList List "steve" <steve@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
      Re: Flickering JList List "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
        Re: Flickering JList List "steve" <steve@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
  Re: Flickering JList List "GBachhaus" <gbachhaus@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
    Re: Flickering JList List "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000

csiph-web