[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/24731] ScrollPane.addNotify() does not work
From: |
mark at klomp dot org |
Subject: |
[Bug awt/24731] ScrollPane.addNotify() does not work |
Date: |
10 Nov 2005 17:20:23 -0000 |
------- Comment #1 from mark at gcc dot gnu dot org 2005-11-10 17:20 -------
Subject: Re: New: ScrollPane.addNotify() does not work
On Tue, 2005-11-08 at 11:10 +0000, freebeans at xqb dot biglobe dot ne
dot jp wrote:
> When peer is null, Component.isDisplayable() returns false.
> It should be
> ---
> public void
> addNotify()
> {
> if (peer != null)
> return;
Yes thanks, that is how all other awt components do this. Alternatively
we could check if (isDisplayable()) return. But checking the actual peer
directly is more in line with the rest of the source.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24731