On Tue, 4 Aug 1998, Kurt Huwig wrote:

> Linux: SuSE Linux 5.2
> Kernel: 2.0.35
> LibC: libc.so.5.4.44
> JDK: 1.1.6v2 (from java-linux.org)
> Processor: AMD K6-233
> With and without Motif 2.0
> WindowManager: KDE 1.0
> X-Server: XFree86 Version 3.3.2
> RAM: 64MB
> Swap: 128MB
> 
> The following (also attached for convenience) program works 
> with JDK1.1.3, but not with JDK1.1.6. 
> It should create two frames.
> 
> JDK 1.1.3 (from SuSE): Both frames appear
> JDK 1.1.6: Both frames appear, flicker a bit and the second frame 
>       disappears Sometimes I get messages about Bogus free memory 
>       and unallocated memory, but not in this small sample.
> 
> It seems to be the 'setResizable( false )' that makes the problems. If I omit
> it, everything works fine.

Great. I just wanted to say that I experience the same behavior as you. I
haven't tried JDK1.1.3, only 1.1.6. I'm using glibc and KDE 1.0. I
remember someone mention this as a KDE problem.

A few additions:

* I checked the KDE-buglist and saw a few bugs like this one (see
  http://buglist.kde.org)

* setResizable(boolean) is a call to FramePeer.setResizable(boolean)

* The bug only appears when the boolean argument is false

* ICQ for Java is affected

I would be great to know if there are other Windowmanagers that have 
this thing as well. Use Kurts code below to test:

- ---------- cut here -----------
import java.awt.Frame;

class JDK116Bug {
        public static void main( String argv[] ) {
                Frame a = new Frame();
                a.setSize( 50, 50 );
                a.show();

                Frame b = new Frame();
                b.setSize( 50, 50 );
                b.setResizable( false ); // this line causes trouble!
                b.show();
        }
}                                             
--------------------

Reply via email to